1
0
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:
foudfou 2013-09-19 16:49:07 +02:00
parent f6508616e6
commit d8536d8127

View File

@ -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) {