Remove live editing until we can get it working better

This commit is contained in:
Tracker-Friendly 2024-05-24 20:01:15 +01:00
parent 1c8d0bcf6b
commit 86559829f7
1 changed files with 0 additions and 26 deletions

View File

@ -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) { if (localStorage.getItem("SETTING-fontsize") === null) {
localStorage.setItem("SETTING-fontsize", "16") localStorage.setItem("SETTING-fontsize", "16")
updateFont() updateFont()
@ -763,4 +738,3 @@ if (firstNewVersion()) {
} }
checknetwork() checknetwork()
waitforedit()