Allow Zotero.HTTP.request() for non-HTTP URLs when offline
Otherwise Zotero throws an error at startup when offline.
This commit is contained in:
parent
f05b98ba20
commit
99bba5d198
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ Zotero.HTTP = new function() {
|
|||
Zotero.debug("HTTP " + method + " " + dispURL);
|
||||
}
|
||||
|
||||
if (this.browserIsOffline()) {
|
||||
if (url.startsWith('http') && this.browserIsOffline()) {
|
||||
Zotero.debug("HTTP " + method + " " + dispURL + " failed: Browser is offline");
|
||||
throw new this.BrowserOfflineException();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue