Explorar o código

Allow disabling of the bosh plugin

JC Brand %!s(int64=5) %!d(string=hai) anos
pai
achega
95b015f01a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/headless/converse-bosh.js

+ 1 - 1
src/headless/converse-bosh.js

@@ -17,7 +17,7 @@ const BOSH_SESSION_ID = 'converse.bosh-session';
 converse.plugins.add('converse-bosh', {
 
     enabled () {
-        return true;
+        return !_converse.api.settings.get("blacklisted_plugins").includes('converse-bosh');
     },
 
     initialize () {