aboutsummaryrefslogtreecommitdiff
path: root/views/stats.pug
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-05-10 09:56:37 -0400
committerGitHub <noreply@github.com>2023-05-10 09:56:37 -0400
commit07c89fcd7af89a657abf705ecc78d337dbf387ed (patch)
tree3002fded93d420c0926c9bf04c49b6f98c1b5985 /views/stats.pug
parent719da9462f02fd3afda9b0b65de19de9405ab4fc (diff)
parentb9d00178df75e1052bf26964bea37dcd0021ba63 (diff)
Merge pull request #170 from brown-dash/james-server-stats
James - remFromList fix
Diffstat (limited to 'views/stats.pug')
-rw-r--r--views/stats.pug4
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));