From a5a4ac9461164e71ae10b9f95df85e0f2e12d7ae Mon Sep 17 00:00:00 2001 From: Ivor Wanders Date: Sun, 2 Nov 2014 14:29:43 +0100 Subject: [PATCH] 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. --- htdocs/js/mpd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)