From 1938e76c4536ccb381592208e373ce443af77c6d Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 20 Mar 2015 21:12:36 -0400 Subject: [PATCH] 2015: live: Use protocol relative URL for icecast XHR. --- 2015/assets/js/stream.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/2015/assets/js/stream.js b/2015/assets/js/stream.js index 3edbdc06..5afec44d 100644 --- a/2015/assets/js/stream.js +++ b/2015/assets/js/stream.js @@ -25,6 +25,8 @@ var app = {}; app.icecastUrl = "http://live.fsf.org"; +app.icecastApiUrl = "//live.fsf.org"; + app.scheduleEvery = function(duration, thunk) { thunk(); setTimeout(function() { @@ -39,7 +41,7 @@ app.nullStats = { }; app.streamStats = function(mount) { - var statsUrl = app.icecastUrl.concat('/status-json.xsl'); + var statsUrl = app.icecastApiUrl.concat('/status-json.xsl'); return m.request({ method: "GET", -- 2.25.1