Sockets allowing for live updates rather than complete rebuilds #7

Merged
kristy-fournier merged 20 commits from timerChanges into main 2026-02-11 09:39:36 -05:00
Showing only changes of commit 86a37a89c6 - Show all commits

View file

@ -50,9 +50,11 @@ async function getFromServer(bodyInfo, source="", secure=false, password=adminPa
} }
let href = ""; let href = "";
if(secure) { if(secure) {
href = "https://"+ip+"/" href = "https://"+ip+"/" + source;
} else {
href = "http://"+ip+"/" + source;
} }
const response = await fetch("http://"+ip+"/"+source, { const response = await fetch(href, {
method: "POST", method: "POST",
body: JSON.stringify(bodyInfo), body: JSON.stringify(bodyInfo),
headers: { headers: {