Allow Zotero.HTTP.request() for non-HTTP URLs when offline

Otherwise Zotero throws an error at startup when offline.
This commit is contained in:
Dan Stillman 2016-01-14 12:47:52 -05:00
parent f05b98ba20
commit 99bba5d198

View File

@ -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();
} }