diff options
| author | bobzel <zzzman@gmail.com> | 2023-05-10 10:12:54 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-05-10 10:12:54 -0400 |
| commit | bbdefbe2ed56348ceafd83f34d02cc649b84e269 (patch) | |
| tree | 5d3755a381c5b66c991b6746919d39fc78cd03bd /views | |
| parent | ebb846116af9c7e65a9d674c765c71c0bf0a7d29 (diff) | |
| parent | 97a743455e7fa3eee768b1d4d025b9dedc49f370 (diff) | |
Merge branch 'master' into UI_Update_Eric_Ma
Diffstat (limited to 'views')
| -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)); |
