From da99da5b6da557b11338c551ac7363b8cc022362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 5 Oct 2013 22:24:16 +0200 Subject: [PATCH] converse.js: set https bosh link --- source/jabber/index.html.slim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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,