From c4d67c5b5e6b183e4cbf0096630d5723632a1dcf Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 14 Jan 2016 13:04:29 -0500 Subject: [PATCH] Don't unlink sync account in prefs when offline --- chrome/content/zotero/preferences/preferences_sync.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences_sync.js b/chrome/content/zotero/preferences/preferences_sync.js index 9880f1bae..f3fd882ba 100644 --- a/chrome/content/zotero/preferences/preferences_sync.js +++ b/chrome/content/zotero/preferences/preferences_sync.js @@ -50,8 +50,9 @@ Zotero_Preferences.Sync = { } catch (e) { // API key wrong/invalid - if (!(e instanceof Zotero.HTTP.UnexpectedStatusException) && - !(e instanceof Zotero.HTTP.TimeoutException)) { + if (!(e instanceof Zotero.HTTP.UnexpectedStatusException) + && !(e instanceof Zotero.HTTP.TimeoutException) + && !(e instanceof Zotero.HTTP.BrowserOfflineException)) { Zotero.alert( window, Zotero.getString('general.error'),