From 23a08c54af5266e0cc2257c441dbaf8717ebee13 Mon Sep 17 00:00:00 2001 From: SuperBFG7 Date: Sun, 30 Jul 2017 13:27:15 +0200 Subject: [PATCH] use current location for the stream URL --- htdocs/js/mpd.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index b6e7644..216a490 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -755,12 +755,7 @@ function setLocalStream(mpdhost) { var mpdstream = $.cookie("mpdstream"); if ( !mpdstream ) { - mpdstream = "http://"; - if ( mpdhost == "127.0.0.1" ) - mpdstream += window.location.hostname; - else - mpdstream += mpdhost; - mpdstream += ":8000/"; + mpdstream = "http://" + window.location.hostname + ":8000/"; $.cookie("mpdstream", mpdstream, { expires: 424242 }); }