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
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2017-08-18 17:49:06 +0300
committersualko <klaus@jsxc.org>2017-08-18 17:49:06 +0300
commiteeafe8fd912ab9ae1fb166aeff9b7a92d63b42e5 (patch)
treee632cc20a2b61d07890f15771a346272fc072a5a
parent1dc1c4bf98e845e5d59af09b7db580c7f1081b27 (diff)
abort if a NC dependency is missing
-rw-r--r--js/ojsxc.js5
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;