From: Ivor Wanders Date: Sun, 2 Nov 2014 13:29:43 +0000 (+0100) Subject: Changes URL used for the websocket. X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=a5a4ac9461164e71ae10b9f95df85e0f2e12d7ae;p=ympd.git 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. --- diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index b6db9af..45b9108 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -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)