From 86559829f7f1bc6dbef7a80300fdec1a5e527793 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Fri, 24 May 2024 20:01:15 +0100 Subject: [PATCH] Remove live editing until we can get it working better --- static/js/main.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index 87a6273..1b30793 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -220,31 +220,6 @@ async function checknetwork() { }); } -async function waitforedit() { - while(true) { - await fetch(remote + "/api/waitforedit", { - method: "POST", - body: JSON.stringify({ - "secretKey": localStorage.getItem("DONOTSHARE-secretkey") - }), - headers: { - "Content-Type": "application/json; charset=UTF-8" - } - }) - .then(async (response) => { - async function doStuff() { - const data = await response.json(); - // Access the "note" field from the response - const note = data["note"]; - if (note === selectedNote) { - selectNote(selectedNote) - } - } - doStuff() - }); - } -} - if (localStorage.getItem("SETTING-fontsize") === null) { localStorage.setItem("SETTING-fontsize", "16") updateFont() @@ -763,4 +738,3 @@ if (firstNewVersion()) { } checknetwork() -waitforedit()