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) {
|
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'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user