From 4aebd01c83c976e7cc543334a68e0c53cbdf5332 Mon Sep 17 00:00:00 2001 From: Hamza Zia Date: Mon, 2 Jul 2012 08:15:39 -0700 Subject: [PATCH] server host used by default --- js/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/script.js b/js/script.js index 3747172..c7f89bc 100755 --- a/js/script.js +++ b/js/script.js @@ -180,6 +180,9 @@ var update_ui = function() { $(function() { get_conf_cookie(); + if (window.location.protocol === "http:") { + server_conf.host = window.location.host; + } var modal_conf = { show: false, backdrop: false