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
|
@ -121,7 +121,7 @@ Zotero.HTTP = new function() {
|
||||||
Zotero.debug("HTTP " + method + " " + dispURL);
|
Zotero.debug("HTTP " + method + " " + dispURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.browserIsOffline()) {
|
if (url.startsWith('http') && this.browserIsOffline()) {
|
||||||
Zotero.debug("HTTP " + method + " " + dispURL + " failed: Browser is offline");
|
Zotero.debug("HTTP " + method + " " + dispURL + " failed: Browser is offline");
|
||||||
throw new this.BrowserOfflineException();
|
throw new this.BrowserOfflineException();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user