converse.js: set https bosh link

This commit is contained in:
Jörg Thalheim 2013-10-05 22:24:16 +02:00
parent b0bb441f3f
commit da99da5b6d
1 changed files with 7 additions and 1 deletions

View File

@ -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,