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
|
||||
*
|
||||
* Runs synchronously, so should only be run on local (e.g. chrome) URLs
|
||||
* @deprecated
|
||||
*/
|
||||
function getContentsFromURL(url) {
|
||||
Zotero.debug('File.getContentsFromURL() is deprecated. Use File.getContentsFromURLAsync()');
|
||||
var xmlhttp = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
|
||||
.createInstance();
|
||||
xmlhttp.open('GET', url, false);
|
||||
|
|
Loading…
Reference in a new issue