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

View File

@ -2,11 +2,17 @@
== stylesheet_link_tag "converse/converse.min.css" == stylesheet_link_tag "converse/converse.min.css"
== javascript_include_tag "converse.min.js" == javascript_include_tag "converse.min.js"
javascript: 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) { require(['converse'], function (converse) {
converse.initialize({ converse.initialize({
auto_list_rooms: false, auto_list_rooms: false,
auto_subscribe: 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, hide_muc_server: false,
i18n: locales.en, i18n: locales.en,
prebind: false, prebind: false,