run app on ipv4 localhost, chrome on osx disables ipv6 if no global ipv6 address is present

This commit is contained in:
j 2015-02-22 16:53:06 +05:30
commit 689daa37db
4 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@
var port = document.location.hash.length
? document.location.hash.slice(1)
: '9842',
base = '//[::1]:' + port,
base = '//127.0.0.1:' + port,
ws = new WebSocket('ws:' + base + '/ws');
ws.onopen = function(event) {
document.location.href = 'http:' + base;