Remove live editing until we can get it working better
This commit is contained in:
parent
1c8d0bcf6b
commit
86559829f7
|
@ -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()
|
|
||||||
|
|
Reference in New Issue