diff options
author | sualko <klaus@jsxc.org> | 2022-01-04 16:09:12 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2022-01-04 16:09:12 +0300 |
commit | 550b1f30a11c1ebd86618d8eb96f456a13b377a8 (patch) | |
tree | 23a25b228df91cb66073cd20907c82a412751984 | |
parent | f34c9d40803e5833cbfacb89213d1f13776aa2d1 (diff) |
fix: disable jsxc if not configured
-rw-r--r-- | ts/Bootstrap.ts | 4 |
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) { |