diff options
| author | Mohammad Amoush <51237606+jameshu111@users.noreply.github.com> | 2023-04-17 16:40:33 -0400 |
|---|---|---|
| committer | Mohammad Amoush <51237606+jameshu111@users.noreply.github.com> | 2023-04-17 16:40:33 -0400 |
| commit | 96465f2dccc974a821fa912c90def988b76808e5 (patch) | |
| tree | 6a048b7597708b72a7b53ea82d3400ffd288bcbe /views | |
| parent | c2ee641e1f6a8003e961d03550aaffeb668f2545 (diff) | |
Update Stats Page JS
Updated stats page javascript to allow multiple users to see the stats page after testing in sprint
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)); |
