fixes websocket-related crash at startup when location.host already contains the port

This commit is contained in:
Jaakko Sipari 2014-07-12 15:54:16 +03:00
parent 763980eb78
commit 1ee41f0d6f

View File

@ -8,7 +8,7 @@
<script type='application/javascript' src='js/fastclick.js'></script>
<script>
//configuration
var wsLocation = location.host + ':6680'; //for musicbox configuration and normal operation of mopidy http
var wsLocation = location.host.split(':')[0] + ':6680'; //for musicbox configuration and normal operation of mopidy http. remove port from location.host before adding :6680
// var wsLocation = location.host; //for running on port 80