diff options
author | sualko <klaus@jsxc.org> | 2017-07-28 11:17:35 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2017-07-28 11:17:35 +0300 |
commit | da07a823ef6a38b4be3e1972a8fb52bb8d1748f2 (patch) | |
tree | 2c61e57bfca40a8fcf299e3b1b00a8a29e6e9a0b /js | |
parent | 7cae93ee140b4ac7ae043010148132af54e93ce2 (diff) |
abort on login/flow and if dependency fails (fix jsxc/jsxc#584)
Diffstat (limited to 'js')
-rw-r--r-- | js/ojsxc.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/ojsxc.js b/js/ojsxc.js index 0253f8c..d95defb 100644 --- a/js/ojsxc.js +++ b/js/ojsxc.js @@ -294,11 +294,16 @@ return; } - if (typeof jsxc === 'undefined') { + if (typeof jsxc === 'undefined' || typeof emojione === 'undefined') { // abort if core or dependencies threw an error return; } + if (OC.generateUrl('login/flow') === window.location.pathname) { + // abort on login flow + return; + } + $(document).one('ready-roster-jsxc', onRosterReady); $(document).on('toggle.roster.jsxc', onRosterToggle); |