1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-11-26 23:07:17 +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:
Ivor Wanders 2014-11-02 14:29:43 +01:00
parent 9728aae69c
commit a5a4ac9461

View File

@ -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)