mirror of
https://github.com/moparisthebest/FireTray
synced 2024-08-13 15:53:47 -04:00
fix error catching when accounts not yet initialized
This commit is contained in:
parent
f6508616e6
commit
d8536d8127
@ -320,7 +320,7 @@ firetray.Chat = {
|
|||||||
return globalConnected;
|
return globalConnected;
|
||||||
|
|
||||||
} catch (e if e instanceof Components.Exception &&
|
} catch (e if e instanceof Components.Exception &&
|
||||||
e.result === Components.results.NS_ERROR_XPC_JS_THREW_JS_OBJECT &&
|
e.result === Components.results.NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS &&
|
||||||
/_items is undefined/.test(e.message)) {
|
/_items is undefined/.test(e.message)) {
|
||||||
return false; // ignore
|
return false; // ignore
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user