diff --git a/web/js/script.js b/web/js/script.js index 93cc4f2..34e7213 100644 --- a/web/js/script.js +++ b/web/js/script.js @@ -1,6 +1,4 @@ -const baseUrl = window.location - -const eventSource = new EventSource(baseUrl + "/api/events") +const eventSource = new EventSource("/api/events") let prevCPUIdle = 0 let prevCPUKernel = 0