run app on ipv4 localhost, chrome on osx disables ipv6 if no global ipv6 address is present
This commit is contained in:
parent
ad0a2a7b03
commit
689daa37db
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue