commit c4d67c5b5e6b183e4cbf0096630d5723632a1dcf parent 99bba5d198575b49bd604a9e3fc4a6504c001559 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 14 Jan 2016 13:04:29 -0500 Don't unlink sync account in prefs when offline Diffstat:
| M | 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 @@ -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'),