Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2017-07-28 11:17:35 +0300
committersualko <klaus@jsxc.org>2017-07-28 11:17:35 +0300
commitda07a823ef6a38b4be3e1972a8fb52bb8d1748f2 (patch)
tree2c61e57bfca40a8fcf299e3b1b00a8a29e6e9a0b /js
parent7cae93ee140b4ac7ae043010148132af54e93ce2 (diff)
abort on login/flow and if dependency fails (fix jsxc/jsxc#584)
Diffstat (limited to 'js')
-rw-r--r--js/ojsxc.js7
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);