mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-23 09:30:26 +00:00
Changes URL used for the websocket.
This change allows easier implementation of different backends because the websocket URL isn't identical to the webpage URL. This does not affect the functionality of the default C backend.
This commit is contained in:
parent
9728aae69c
commit
a5a4ac9461
@ -419,9 +419,9 @@ function get_appropriate_ws_url()
|
||||
u = u.substr(7);
|
||||
}
|
||||
|
||||
u = u.split('/');
|
||||
u = u.split('#');
|
||||
|
||||
return pcol + u[0];
|
||||
return pcol + u[0] + "/ws";
|
||||
}
|
||||
|
||||
var updateVolumeIcon = function(volume)
|
||||
|
Loading…
Reference in New Issue
Block a user