summaryrefslogtreecommitdiff
path: root/js/assets/icejs.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/assets/icejs.js')
-rw-r--r--js/assets/icejs.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/js/assets/icejs.js b/js/assets/icejs.js
index 636106ece87..d214a4f2f6b 100644
--- a/js/assets/icejs.js
+++ b/js/assets/icejs.js
@@ -11,8 +11,8 @@
$(document).foundation();
-$("#timeout").noUiSlider({range: [0, 2500], start: 0, handles: 1});
-$("#delay").noUiSlider({range: [0, 2500], start: 0, handles: 1});
+$("#timeout").noUiSlider({range: {min: 0, max:2500}, start: 0, handles: 1});
+$("#delay").noUiSlider({range: {min: 0, max:2500}, start: 0, handles: 1});
$("#progress .icon").spin("small");
//
@@ -131,3 +131,14 @@ function checkGenerated(files)
});
});
}
+
+//
+// Browser sync doesn't work well with HTTPS as it open WS insecure socket and some
+// browsers refuse that when document has been loaded from HTTPS.
+//
+if(document.location.protocol === "http:")
+{
+ var script = document.createElement("script");
+ script.src = "//" + location.hostname + ":3000/browser-sync/browser-sync-client.js";
+ $("body").append(script);
+}