www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 99bba5d198575b49bd604a9e3fc4a6504c001559
parent f05b98ba20082175a75a8aef5b51c372fb6f99a2
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 14 Jan 2016 12:47:52 -0500

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

Otherwise Zotero throws an error at startup when offline.

Diffstat:
Mchrome/content/zotero/xpcom/http.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js @@ -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(); }