diff options
| -rw-r--r-- | views/stats.pug | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/stats.pug b/views/stats.pug index 16c28087e..c1f961e9f 100644 --- a/views/stats.pug +++ b/views/stats.pug @@ -5,11 +5,11 @@ block content style include ./stylesheets/authentication.css include ./stylesheets/statsview.css - script(src=`http://localhost:4321/socket.io/socket.io.js`) + script(src=`https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.5.0/socket.io.js`) script include ./resources/statsviewcontroller.js script. - var socket = io.connect("http://localhost:4321"); + var socket = io.connect(`http://${window.location.hostname}:4321`); socket.on("connect", () => console.log("connected to socket")); socket.on("a2cf757f-abd7-537b-953e-ef2f4f798f7e", (data) => handleStatsUpdate(data)); |
