trailing slash

This commit is contained in:
James Barnsley
2017-03-28 18:23:58 +13:00
parent 53c5facbd9
commit 379fe3eb06
2 changed files with 2 additions and 3 deletions

View File

@ -149,11 +149,10 @@ const MopidyMiddleware = (function(){
if(socket != null) socket.close();
store.dispatch({ type: 'MOPIDY_CONNECTING' });
var state = store.getState();
socket = new Mopidy({
webSocketUrl: 'ws'+(window.location.protocol === 'https:' ? 's' : '')+'://'+state.mopidy.host+':'+state.mopidy.port+'/mopidy/ws',
webSocketUrl: 'ws'+(window.location.protocol === 'https:' ? 's' : '')+'://'+state.mopidy.host+':'+state.mopidy.port+'/mopidy/ws/',
callingConvention: 'by-position-or-by-name'
});