mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-16 18:54:48 +00:00
use current location for the stream URL
This commit is contained in:
parent
a212f1bcb7
commit
23a08c54af
@ -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 });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user