2015: live: Use protocol relative URL for icecast XHR.
authorDavid Thompson <dthompson2@worcester.edu>
Sat, 21 Mar 2015 01:12:36 +0000 (21:12 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Sat, 21 Mar 2015 01:12:36 +0000 (21:12 -0400)
2015/assets/js/stream.js

index 3edbdc06dbcd990fea0ba3c47b484c4caf4f480d..5afec44df7660385a8fa369464a8ae4167f5a02f 100644 (file)
@@ -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",