From d2832a5fab9d470191d94d001260b6438ff55fac Mon Sep 17 00:00:00 2001 From: Amazingca Date: Thu, 2 Jul 2026 22:25:05 -0600 Subject: [PATCH] Move to push with body instead of headers --- app/settings.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/settings.js b/app/settings.js index 8f3b8f1..cca8ac4 100644 --- a/app/settings.js +++ b/app/settings.js @@ -249,13 +249,13 @@ pushToServer.addEventListener("click", async () => { const req = await fetch(server.address + "/push", { method: "POST", headers: { - "Authorization": `Basic ${server.passphrase}`, - "Data": JSON.stringify({ - todos: todos, - archived: archived, - theme: theme - }) - } + "Authorization": `Basic ${server.passphrase}` + }, + "body": JSON.stringify({ + todos: todos, + archived: archived, + theme: theme + }) }); if (req.status == 200) { -- 2.54.0