mirror of
https://github.com/SuperBFG7/ympd
synced 2025-09-01 02:07:58 +00:00
use current location for the stream URL
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
Reference in New Issue
Block a user