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>2022-01-04 16:09:12 +0300
committersualko <klaus@jsxc.org>2022-01-04 16:09:12 +0300
commit550b1f30a11c1ebd86618d8eb96f456a13b377a8 (patch)
tree23a25b228df91cb66073cd20907c82a412751984
parentf34c9d40803e5833cbfacb89213d1f13776aa2d1 (diff)
fix: disable jsxc if not configured
-rw-r--r--ts/Bootstrap.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ts/Bootstrap.ts b/ts/Bootstrap.ts
index b215302..353aa3b 100644
--- a/ts/Bootstrap.ts
+++ b/ts/Bootstrap.ts
@@ -58,6 +58,10 @@ export default class Bootstrap {
}
});
+ if (OJSXC_CONFIG.serverType !== 'external' && OJSXC_CONFIG.serverType !== 'managed') {
+ return;
+ }
+
this.initJSXC();
if (OC.generateUrl('/login') === window.location.pathname) {