Add a deprecation message to File.getContentsFromURL
This commit is contained in:
parent
377f8d0aa8
commit
d447403f86
1 changed files with 2 additions and 0 deletions
|
@ -331,8 +331,10 @@ Zotero.File = new function(){
|
||||||
* Return the contents of a URL as a string
|
* Return the contents of a URL as a string
|
||||||
*
|
*
|
||||||
* Runs synchronously, so should only be run on local (e.g. chrome) URLs
|
* Runs synchronously, so should only be run on local (e.g. chrome) URLs
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
function getContentsFromURL(url) {
|
function getContentsFromURL(url) {
|
||||||
|
Zotero.debug('File.getContentsFromURL() is deprecated. Use File.getContentsFromURLAsync()');
|
||||||
var xmlhttp = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
|
var xmlhttp = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
|
||||||
.createInstance();
|
.createInstance();
|
||||||
xmlhttp.open('GET', url, false);
|
xmlhttp.open('GET', url, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue