projects
/
ympd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9728aae
)
Changes URL used for the websocket.
author
Ivor Wanders
<ivor@iwanders.net>
Sun, 2 Nov 2014 13:29:43 +0000
(14:29 +0100)
committer
Ivor Wanders
<ivor@iwanders.net>
Mon, 3 Nov 2014 19:01:05 +0000
(20:01 +0100)
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
patch
|
blob
|
history
diff --git
a/htdocs/js/mpd.js
b/htdocs/js/mpd.js
index
b6db9af
..
45b9108
100644
(file)
--- 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)