Browse Source

Use relative path to websocket

pull/5/head
Gabe Kangas 5 years ago
parent
commit
216c15547d
  1. 2
      webroot/js/main.js

2
webroot/js/main.js

@ -4,7 +4,7 @@ define(
"MessageList" "MessageList"
], ],
function(MessageList) { function(MessageList) {
var ws = new WebSocket("ws://localhost:8080/entry"); var ws = new WebSocket("ws://" + location.host + "/entry");
var list = new MessageList(ws); var list = new MessageList(ws);
ko.applyBindings(list); ko.applyBindings(list);
} }

Loading…
Cancel
Save