diff --git a/rhodecode/public/js/src/rhodecode/connection_controller.js b/rhodecode/public/js/src/rhodecode/connection_controller.js
--- a/rhodecode/public/js/src/rhodecode/connection_controller.js
+++ b/rhodecode/public/js/src/rhodecode/connection_controller.js
@@ -199,8 +199,14 @@ var registerViewChannels;
};
$.Topic('/plugins/__REGISTER__').subscribe(function (data) {
- // enable chat controller
if (window.CHANNELSTREAM_SETTINGS && window.CHANNELSTREAM_SETTINGS.enabled) {
+ connCtrlr = new ConnectionController(
+ CHANNELSTREAM_SETTINGS.webapp_location,
+ CHANNELSTREAM_SETTINGS.ws_location,
+ CHANNELSTREAM_URLS
+ );
+ registerViewChannels();
+
$(document).ready(function () {
connCtrlr.run();
});
diff --git a/rhodecode/templates/base/plugins_base.html b/rhodecode/templates/base/plugins_base.html
--- a/rhodecode/templates/base/plugins_base.html
+++ b/rhodecode/templates/base/plugins_base.html
@@ -9,6 +9,3 @@ pyramid_registry = get_current_registry(
{'config':config}, request=get_current_request(), package='rc_ae')|n}
% endif
% endfor
-
diff --git a/rhodecode/templates/base/root.html b/rhodecode/templates/base/root.html
--- a/rhodecode/templates/base/root.html
+++ b/rhodecode/templates/base/root.html
@@ -111,6 +111,7 @@ c.template_context['visual']['default_re
}
};
+ <%include file="/base/plugins_base.html"/>
@@ -144,8 +145,9 @@ c.template_context['visual']['default_re
<%def name="head_extra()">%def>
${self.head_extra()}
- <%include file="/base/plugins_base.html"/>
-
+
## extra stuff
%if c.pre_code:
${c.pre_code|n}
diff --git a/rhodecode/templates/channelstream/plugin_init.html b/rhodecode/templates/channelstream/plugin_init.html
--- a/rhodecode/templates/channelstream/plugin_init.html
+++ b/rhodecode/templates/channelstream/plugin_init.html
@@ -13,12 +13,4 @@
'webapp_location': ''};
%endif
-if (CHANNELSTREAM_SETTINGS.enabled) {
- connCtrlr = new ConnectionController(
- CHANNELSTREAM_SETTINGS.webapp_location,
- CHANNELSTREAM_SETTINGS.ws_location,
- CHANNELSTREAM_URLS
- );
- registerViewChannels();
-}