diff options
author | sualko <klaus@jsxc.org> | 2017-08-18 17:49:06 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2017-08-18 17:49:06 +0300 |
commit | eeafe8fd912ab9ae1fb166aeff9b7a92d63b42e5 (patch) | |
tree | e632cc20a2b61d07890f15771a346272fc072a5a | |
parent | 1dc1c4bf98e845e5d59af09b7db580c7f1081b27 (diff) |
abort if a NC dependency is missing
-rw-r--r-- | js/ojsxc.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/ojsxc.js b/js/ojsxc.js index ce46beb..ca475e8 100644 --- a/js/ojsxc.js +++ b/js/ojsxc.js @@ -310,6 +310,11 @@ return; } + if (typeof oc_config === 'undefined' || typeof oc_appswebroots === 'undefined' || typeof OC === 'undefined') { + // abort if a dependency is missing + return; + } + if (OC.generateUrl('login/flow') === window.location.pathname) { // abort on login flow return; |