From: David Thompson Date: Sat, 21 Mar 2015 01:12:36 +0000 (-0400) Subject: 2015: live: Use protocol relative URL for icecast XHR. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1938e76c4536ccb381592208e373ce443af77c6d;p=libreplanet-static.git 2015: live: Use protocol relative URL for icecast XHR. --- 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",