From 6cf9d622cb55fbfcbb576461b33260944868844e Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 15 Aug 2024 10:51:53 -0400 Subject: [PATCH] I think I need to give full domain? --- src/assets/hestia.js | 14 +++++++------- src/index.html | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/assets/hestia.js b/src/assets/hestia.js index a2553c3..28c79c2 100644 --- a/src/assets/hestia.js +++ b/src/assets/hestia.js @@ -23,12 +23,6 @@ const config = { } }; -window.onload = function() { - psState.init(config); - comms.init(psState, config); - refreshState(window.document, psState); -}; - function refreshState(doc, state) { const igniterStatus = doc.getElementById("igniter-status"); const exhaustStatus = doc.getElementById("exhaust-status"); @@ -52,4 +46,10 @@ function refreshState(doc, state) { function togglePower(element) { psState[element].power(comms); refreshState(window.document, psState); -} \ No newline at end of file +} + +window.onload = function() { + psState.init(config); + comms.init(psState, config); + refreshState(window.document, psState); +}; \ No newline at end of file diff --git a/src/index.html b/src/index.html index 21661fd..2b4d214 100644 --- a/src/index.html +++ b/src/index.html @@ -77,7 +77,7 @@ - + \ No newline at end of file