Use relative path to websocket

This commit is contained in:
Gabe Kangas 2020-06-01 17:47:53 -07:00
parent d0ec846b30
commit 216c15547d

View file

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