Fix host of the web socket

This commit is contained in:
Frank A. Krueger 2017-06-15 16:17:15 -07:00
parent ff950121ff
commit 50a49a1a4c
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
// Create WebSocket connection.
const socket = new WebSocket ("ws://localhost:8080" + rootElementPath, "ooui-1.0");
const socket = new WebSocket ("ws://" + document.location.host + rootElementPath, "ooui-1.0");
console.log("Web socket created");