From 99bba5d198575b49bd604a9e3fc4a6504c001559 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 14 Jan 2016 12:47:52 -0500 Subject: [PATCH] Allow Zotero.HTTP.request() for non-HTTP URLs when offline Otherwise Zotero throws an error at startup when offline. --- chrome/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 index f422d197a..d035d15f4 100644 --- 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(); }