diff --git a/source/jabber/index.html.slim b/source/jabber/index.html.slim index 4201ad5..7a40b4f 100644 --- a/source/jabber/index.html.slim +++ b/source/jabber/index.html.slim @@ -2,11 +2,17 @@ == stylesheet_link_tag "converse/converse.min.css" == javascript_include_tag "converse.min.js" javascript: + var bosh_url; + if (window.location.protocol == "https:") { + bosh_url = 'https//higgsboson.tk:5281/http-bind/' + } else {} + bosh_url = 'http//higgsboson.tk:5280/http-bind/' + } require(['converse'], function (converse) { converse.initialize({ auto_list_rooms: false, auto_subscribe: false, - bosh_service_url: '//higgsboson.tk:5820/http-bind', // Please use this connection manager only for testing purposes + bosh_service_url: bosh_url, hide_muc_server: false, i18n: locales.en, prebind: false,