Don't unlink sync account in prefs when offline
This commit is contained in:
parent
99bba5d198
commit
c4d67c5b5e
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue
Block a user