Don't unlink sync account in prefs when offline

This commit is contained in:
Dan Stillman 2016-01-14 13:04:29 -05:00
parent 99bba5d198
commit c4d67c5b5e

View File

@ -50,8 +50,9 @@ Zotero_Preferences.Sync = {
} }
catch (e) { catch (e) {
// API key wrong/invalid // API key wrong/invalid
if (!(e instanceof Zotero.HTTP.UnexpectedStatusException) && if (!(e instanceof Zotero.HTTP.UnexpectedStatusException)
!(e instanceof Zotero.HTTP.TimeoutException)) { && !(e instanceof Zotero.HTTP.TimeoutException)
&& !(e instanceof Zotero.HTTP.BrowserOfflineException)) {
Zotero.alert( Zotero.alert(
window, window,
Zotero.getString('general.error'), Zotero.getString('general.error'),