Made it not redirect to /migrate when not connected to the internet, made fontManipulator's buttons centered, made a 401 response log out the user from loggedin and userinfo

This commit is contained in:
Tracker-Friendly 2024-07-30 11:03:05 +01:00
parent f3d0a9c696
commit e63fa13553
2 changed files with 281 additions and 291 deletions

View File

@ -593,6 +593,7 @@ button:hover {
background-color: var(--nonimporant-theme-color); background-color: var(--nonimporant-theme-color);
color: var(--nonimportant-text-color); color: var(--nonimportant-text-color);
transition: 0.125s; transition: 0.125s;
margin-bottom: 0;
} }
.optionsDiv .fontManipulator button:hover { .optionsDiv .fontManipulator button:hover {

View File

@ -21,6 +21,7 @@ let secretkey = localStorage.getItem("DONOTSHARE-secretkey")
let password = localStorage.getItem("DONOTSHARE-password") let password = localStorage.getItem("DONOTSHARE-password")
let currentFontSize = 16 let currentFontSize = 16
let offlineMode = false
let backButton = document.getElementById("backButton") let backButton = document.getElementById("backButton")
let usernameBox = document.getElementById("usernameBox") let usernameBox = document.getElementById("usernameBox")
let optionsCoverDiv = document.getElementById("optionsCoverDiv") let optionsCoverDiv = document.getElementById("optionsCoverDiv")
@ -152,10 +153,10 @@ function handleGesture() {
} }
// Init the note box // Init the note box
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", async function () {
pell.init({ pell.init({
element: pellAttacher, element: pellAttacher,
onChange: function(html) { onChange: function (html) {
// Having a nice day? This does nothing. // Having a nice day? This does nothing.
}, },
defaultParagraphSeparator: 'br', defaultParagraphSeparator: 'br',
@ -184,23 +185,20 @@ document.addEventListener("DOMContentLoaded", function() {
name: 'uploadimage', name: 'uploadimage',
icon: '📁', icon: '📁',
title: 'Upload image', title: 'Upload image',
result: function result() { result: async function result() {
async function doStuff() { browseButton.classList.remove("hidden")
browseButton.classList.remove("hidden") displayError("Select an image to upload:")
displayError("Select an image to upload:") await waitForConfirm()
await waitForConfirm() browseButton.classList.add("hidden")
browseButton.classList.add("hidden") let file = uploadThing.files[0]
let file = uploadThing.files[0] if (file) {
if (file) { let reader = new FileReader()
let reader = new FileReader() reader.readAsDataURL(file)
reader.readAsDataURL(file) uploadThing.files = null
uploadThing.files = null reader.onload = function () {
reader.onload = function () { pell.exec('insertImage', reader.result);
pell.exec('insertImage', reader.result);
}
} }
} }
doStuff();
} }
}, },
"image", "image",
@ -292,22 +290,24 @@ document.addEventListener("DOMContentLoaded", function() {
} }
}) })
.catch(() => { .catch(() => {
offlineMode = true
noteBox.contentEditable = false noteBox.contentEditable = false
noteBox.innerHTML = "<h1>You are currently offline.</h1>" noteBox.innerHTML = "<h1>You are currently offline.</h1>"
displayError("Failed to connect to the server.\nPlease check your internet connection.") displayError("Failed to connect to the server.\nPlease check your internet connection.")
}) })
.then((response) => response) .then((response) => response)
.then((response) => { .then((response) => {
if (response.status === 400) { if (response.status === 400 || response.status === 401) {
offlineMode = true
displayError("Something went wrong! Signing you out...") displayError("Something went wrong! Signing you out...")
closeErrorButton.classList.add("hidden") closeErrorButton.classList.add("hidden")
//usernameBox.innerText = ""
setTimeout(function () { setTimeout(function () {
window.location.replace("/logout") window.location.replace("/logout")
}, 2500); }, 2500);
} else if (response.status === 200) { } else if (response.status === 200) {
updateUserInfo() updateUserInfo()
} else { } else {
offlineMode = true
noteBox.readOnly = true noteBox.readOnly = true
noteBox.innerHTML = "<h1>You are currently offline.</h1>" noteBox.innerHTML = "<h1>You are currently offline.</h1>"
displayError("Failed to connect to the server.\nPlease check your internet connection.") displayError("Failed to connect to the server.\nPlease check your internet connection.")
@ -351,25 +351,21 @@ document.addEventListener("DOMContentLoaded", function() {
"Content-Type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => { .then(async (response) => {
async function doStuff() { if (response.status === 500 || response.status === 401) {
if (response.status === 500) { displayError("Something went wrong! Signing you out...")
displayError("Something went wrong! Signing you out...") closeErrorButton.classList.add("hidden")
closeErrorButton.classList.add("hidden") setTimeout(function () {
setTimeout(function () { window.location.replace("/logout")
window.location.replace("/logout") }, 2500);
}, 2500); } else {
} else { let responseData = await response.json()
let responseData = await response.json() usernameThing.innerText = "Username: " + responseData["username"]
usernameThing.innerText = "Username: " + responseData["username"] storageThing.innerText = "You've used " + formatBytes(responseData["storageused"]) + " out of " + formatBytes(responseData["storagemax"])
storageThing.innerText = "You've used " + formatBytes(responseData["storageused"]) + " out of " + formatBytes(responseData["storagemax"]) storageProgressThing.value = responseData["storageused"]
storageProgressThing.value = responseData["storageused"] storageProgressThing.max = responseData["storagemax"]
storageProgressThing.max = responseData["storagemax"] noteCount = responseData["notecount"]
noteCount = responseData["notecount"]
}
} }
doStuff()
}); });
} }
@ -427,130 +423,126 @@ document.addEventListener("DOMContentLoaded", function() {
}) })
} }
changePasswordButton.addEventListener("click", () => { changePasswordButton.addEventListener("click", async () => {
optionsDiv.classList.add("hidden") optionsDiv.classList.add("hidden")
async function doStuff() { async function fatalError(notes, passwordBackup) {
async function fatalError(notes, passwordBackup) { displayError("Something went wrong! Your password change has failed. Attempting to revert changes...")
displayError("Something went wrong! Your password change has failed. Attempting to revert changes...") password = passwordBackup
password = passwordBackup localStorage.setItem("DONOTSHARE-password", password)
localStorage.setItem("DONOTSHARE-password", password) let changePasswordBackResponse = await fetch(remote + "/api/changepassword", {
let changePasswordBackResponse = await fetch(remote + "/api/changepassword", { method: "POST",
body: JSON.stringify({
secretKey: secretkey,
newPassword: await hashpass(oldPass),
migration: false
}),
headers: {
"Content-Type": "application/json; charset=UTF-8",
"X-Burgernotes-Version": "200"
}
})
if (changePasswordBackResponse.status === 200) {
let responseStatus = await importNotes(notes)
if (responseStatus === 500) {
closeErrorButton.classList.remove("hidden")
displayError("Failed to revert changes. Please delete this user account and sign-up again, then re-import the notes. Click Ok to download the notes to import later.")
await waitForConfirm()
downloadObjectAsJson(notes, "data")
} else {
closeErrorButton.classList.remove("hidden")
displayError("Password change failed! Changes have been reverted.")
updateNotes()
}
} else {
displayError("Failed to revert changes. Please delete this user account and sign-up again, then re-import the notes. Click Ok to download the notes to import later.")
downloadObjectAsJson(notes, "data")
}
}
displayError("Confirm your current password to change it")
errorInput.type = "password"
errorInput.classList.remove("hidden")
await waitForConfirm()
const oldPass = errorInput.value
errorInput.classList.add("hidden")
if (await hashwasm.argon2id({
password: password,
salt: new TextEncoder().encode("I love Burgernotes!"),
parallelism: 1,
iterations: 32,
memorySize: 19264,
hashLength: 32,
outputType: "hex"
}) !== password) {
displayError("Incorrect password!")
} else {
errorInput.value = ""
displayError("Enter your new password")
errorInput.classList.remove("hidden")
await waitForConfirm()
errorInput.classList.add("hidden")
const newPass = errorInput.value
errorInput.type = "text"
errorInput.value = ""
if (newPass.length < 8) {
displayError("Password must be at least 8 characters!")
} else {
displayError("Changing your password. This process may take up to 5 minutes. Do NOT close the tab!")
closeErrorButton.classList.add("hidden")
const response = await fetch(remote + "/api/changepassword", {
method: "POST", method: "POST",
body: JSON.stringify({ body: JSON.stringify({
secretKey: secretkey, secretKey: secretkey,
newPassword: await hashpass(oldPass), newPassword: await hashpass(newPass)
migration: false
}), }),
headers: { headers: {
"Content-Type": "application/json; charset=UTF-8", "Content-Type": "application/json; charset=UTF-8",
"X-Burgernotes-Version": "200" "X-Burgernotes-Version": "200"
} }
}) })
if (changePasswordBackResponse.status === 200) { if (response.status === 200) {
let responseStatus = await importNotes(notes) let notes = await exportNotes()
if (responseStatus === 500) { let passwordBackup = password
closeErrorButton.classList.remove("hidden") password = await hashwasm.argon2id({
displayError("Failed to revert changes. Please delete this user account and sign-up again, then re-import the notes. Click Ok to download the notes to import later.") password: password,
await waitForConfirm() salt: new TextEncoder().encode("I love Burgernotes!"),
downloadObjectAsJson(notes, "data") parallelism: 1,
} else { iterations: 32,
closeErrorButton.classList.remove("hidden") memorySize: 19264,
displayError("Password change failed! Changes have been reverted.") hashLength: 32,
updateNotes() outputType: "hex"
} })
} else { localStorage.setItem("DONOTSHARE-password", password)
displayError("Failed to revert changes. Please delete this user account and sign-up again, then re-import the notes. Click Ok to download the notes to import later.") let purgeNotes = await fetch(remote + "/api/purgenotes", {
downloadObjectAsJson(notes, "data")
}
}
displayError("Confirm your current password to change it")
errorInput.type = "password"
errorInput.classList.remove("hidden")
await waitForConfirm()
const oldPass = errorInput.value
errorInput.classList.add("hidden")
if (await hashwasm.argon2id({
password: password,
salt: new TextEncoder().encode("I love Burgernotes!"),
parallelism: 1,
iterations: 32,
memorySize: 19264,
hashLength: 32,
outputType: "hex"
}) !== password) {
displayError("Incorrect password!")
} else {
errorInput.value = ""
displayError("Enter your new password")
errorInput.classList.remove("hidden")
await waitForConfirm()
errorInput.classList.add("hidden")
const newPass = errorInput.value
errorInput.type = "text"
errorInput.value = ""
if (newPass.length < 8) {
displayError("Password must be at least 8 characters!")
} else {
displayError("Changing your password. This process may take up to 5 minutes. Do NOT close the tab!")
closeErrorButton.classList.add("hidden")
const response = await fetch(remote + "/api/changepassword", {
method: "POST", method: "POST",
body: JSON.stringify({ body: JSON.stringify({
secretKey: secretkey, secretKey: secretkey
newPassword: await hashpass(newPass)
}), }),
headers: { headers: {
"Content-Type": "application/json; charset=UTF-8", "Content-Type": "application/json; charset=UTF-8"
"X-Burgernotes-Version": "200"
} }
}) })
if (response.status === 200) { if (purgeNotes.status !== 200) {
let notes = await exportNotes() fatalError(notes, passwordBackup)
let passwordBackup = password } else {
password = await hashwasm.argon2id({ let responseStatus = await importNotes(notes)
password: password, errorDiv.classList.add("hidden")
salt: new TextEncoder().encode("I love Burgernotes!"), if (responseStatus !== 200) {
parallelism: 1,
iterations: 32,
memorySize: 19264,
hashLength: 32,
outputType: "hex"
})
localStorage.setItem("DONOTSHARE-password", password)
let purgeNotes = await fetch(remote + "/api/purgenotes", {
method: "POST",
body: JSON.stringify({
secretKey: secretkey
}),
headers: {
"Content-Type": "application/json; charset=UTF-8"
}
})
if (purgeNotes.status !== 200) {
fatalError(notes, passwordBackup) fatalError(notes, passwordBackup)
} else { } else {
let responseStatus = await importNotes(notes) closeErrorButton.classList.remove("hidden")
errorDiv.classList.add("hidden") displayError("Password changed!")
if (responseStatus !== 200) { updateNotes()
fatalError(notes, passwordBackup)
} else {
closeErrorButton.classList.remove("hidden")
displayError("Password changed!")
updateNotes()
}
} }
} else {
closeErrorButton.classList.remove("hidden")
const data = await response.json()
displayError(data["error"])
} }
} else {
closeErrorButton.classList.remove("hidden")
const data = await response.json()
displayError(data["error"])
} }
} }
} }
doStuff()
}) })
importNotesButton.addEventListener("click", () => { importNotesButton.addEventListener("click", () => {
optionsDiv.classList.add("hidden") optionsDiv.classList.add("hidden")
@ -569,66 +561,62 @@ document.addEventListener("DOMContentLoaded", function() {
"Content-Type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => { .then(async (response) => {
async function doStuff() { let responseData = await response.json()
let responseData = await response.json() document.querySelectorAll(".burgerSession").forEach((el) => el.remove());
document.querySelectorAll(".burgerSession").forEach((el) => el.remove()); let ua;
let ua; for (let i in responseData) {
for (let i in responseData) { let sessionElement = document.createElement("div")
let sessionElement = document.createElement("div") let sessionText = document.createElement("p")
let sessionText = document.createElement("p") let sessionImage = document.createElement("img")
let sessionImage = document.createElement("img") let sessionRemoveButton = document.createElement("button")
let sessionRemoveButton = document.createElement("button") sessionText.classList.add("w300")
sessionText.classList.add("w300") if (responseData[i]["thisSession"] === true) {
if (responseData[i]["thisSession"] === true) { sessionText.innerText = "(current) " + responseData[i]["device"]
sessionText.innerText = "(current) " + responseData[i]["device"] } else {
} else { sessionText.innerText = responseData[i]["device"]
sessionText.innerText = responseData[i]["device"]
}
sessionText.title = responseData[i]["device"]
sessionRemoveButton.innerText = "x"
sessionImage.src = "/static/svg/device_other.svg"
ua = responseData[i]["device"]
if (ua.includes("NT") || ua.includes("Linux")) {
sessionImage.src = "/static/svg/device_computer.svg"
}
if (ua.includes("iPhone" || ua.includes("Android") || ua.includes("iPod"))) {
sessionImage.src = "/static/svg/device_smartphone.svg"
}
sessionRemoveButton.addEventListener("click", () => {
fetch(remote + "/api/sessions/remove", {
method: "POST",
body: JSON.stringify({
secretKey: secretkey,
sessionId: responseData[i]["id"]
}),
headers: {
"Content-Type": "application/json; charset=UTF-8"
}
})
.then(() => {
if (responseData[i]["thisSession"] === true) {
window.location.replace("/logout")
}
});
sessionElement.remove()
});
sessionElement.append(sessionImage)
sessionElement.append(sessionText)
sessionElement.append(sessionRemoveButton)
sessionElement.classList.add("burgerSession")
sessionDiv.append(sessionElement)
} }
} sessionText.title = responseData[i]["device"]
sessionRemoveButton.innerText = "x"
doStuff() sessionImage.src = "/static/svg/device_other.svg"
ua = responseData[i]["device"]
if (ua.includes("NT") || ua.includes("Linux")) {
sessionImage.src = "/static/svg/device_computer.svg"
}
if (ua.includes("iPhone" || ua.includes("Android") || ua.includes("iPod"))) {
sessionImage.src = "/static/svg/device_smartphone.svg"
}
sessionRemoveButton.addEventListener("click", () => {
fetch(remote + "/api/sessions/remove", {
method: "POST",
body: JSON.stringify({
secretKey: secretkey,
sessionId: responseData[i]["id"]
}),
headers: {
"Content-Type": "application/json; charset=UTF-8"
}
})
.then(() => {
if (responseData[i]["thisSession"] === true) {
window.location.replace("/logout")
}
});
sessionElement.remove()
});
sessionElement.append(sessionImage)
sessionElement.append(sessionText)
sessionElement.append(sessionRemoveButton)
sessionElement.classList.add("burgerSession")
sessionDiv.append(sessionElement)
}
}); });
}); });
exitImportThing.addEventListener("click", () => { exitImportThing.addEventListener("click", () => {
@ -668,7 +656,7 @@ document.addEventListener("DOMContentLoaded", function() {
noteBox.innerHTML = "" noteBox.innerHTML = ""
displayError("Something went wrong... Please try again later!") displayError("Something went wrong... Please try again later!")
}) })
.then((response) => { .then(async (response) => {
selectedNote = nameithink selectedNote = nameithink
if (mobile) { if (mobile) {
handleGesture() handleGesture()
@ -676,82 +664,78 @@ document.addEventListener("DOMContentLoaded", function() {
noteBox.contentEditable = true noteBox.contentEditable = true
noteBox.click() noteBox.click()
async function doStuff() { let responseData = await response.json()
let responseData = await response.json()
let htmlNote let htmlNote
try { try {
htmlNote = await decrypt(responseData["content"]) htmlNote = await decrypt(responseData["content"])
} catch (e) { } catch (e) {
console.log(e) console.log(e)
console.log(responseData) console.log(responseData)
}
console.log(htmlNote)
let cleanedHTML = htmlNote.replace(/<(?!\/?(h1|h2|br|img|blockquote|ol|li|b|i|u|strike|p|pre|ul|hr|a)\b)[^>]*>/gi, '(potential XSS tag was here)')
noteBox.innerHTML = cleanedHTML.replaceAll("\n", "<br>")
updateWordCount()
noteBox.addEventListener("input", () => {
updateWordCount()
clearTimeout(timer);
timer = setTimeout(async () => {
let preEncryptedTitle = "New note"
if (noteBox.innerText !== "") {
preEncryptedTitle = new RegExp('(.+?)(?=\n)|[\s\S]*?(\S+)(?=\n)').exec(noteBox.innerText)[0]
}
preEncryptedTitle = truncateString(preEncryptedTitle, 15)
document.getElementById(nameithink).innerText = preEncryptedTitle
console.log(noteBox.innerHTML)
let encryptedText = await encrypt(noteBox.innerHTML)
let encryptedTitle = await encrypt(preEncryptedTitle)
if (selectedNote === nameithink) {
fetch(remote + "/api/editnote", {
method: "POST",
body: JSON.stringify({
secretKey: secretkey,
noteId: nameithink,
content: encryptedText,
title: encryptedTitle
}),
headers: {
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => {
if (response.status === 418) {
displayError("You've ran out of storage... Changes will not be saved until you free up storage!")
}
})
.catch(() => {
displayError("Failed to save changes, please try again later...")
})
}
}, waitTime);
});
} }
doStuff() console.log(htmlNote)
let cleanedHTML = htmlNote.replace(/<(?!\/?(h1|h2|br|img|blockquote|ol|li|b|i|u|strike|p|pre|ul|hr|a)\b)[^>]*>/gi, '(potential XSS tag was here)')
noteBox.innerHTML = cleanedHTML.replaceAll("\n", "<br>")
updateWordCount()
noteBox.addEventListener("input", () => {
updateWordCount()
clearTimeout(timer);
timer = setTimeout(async () => {
let preEncryptedTitle = "New note"
if (noteBox.innerText !== "") {
preEncryptedTitle = new RegExp('(.+?)(?=\n)|[\s\S]*?(\S+)(?=\n)').exec(noteBox.innerText)[0]
}
preEncryptedTitle = truncateString(preEncryptedTitle, 15)
document.getElementById(nameithink).innerText = preEncryptedTitle
console.log(noteBox.innerHTML)
let encryptedText = await encrypt(noteBox.innerHTML)
let encryptedTitle = await encrypt(preEncryptedTitle)
if (selectedNote === nameithink) {
fetch(remote + "/api/editnote", {
method: "POST",
body: JSON.stringify({
secretKey: secretkey,
noteId: nameithink,
content: encryptedText,
title: encryptedTitle
}),
headers: {
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => {
if (response.status === 418) {
displayError("You've ran out of storage... Changes will not be saved until you free up storage!")
}
})
.catch(() => {
displayError("Failed to save changes, please try again later...")
})
}
}, waitTime);
});
}); });
} }
function updateNotes() { function updateNotes() {
fetch(remote + "/api/listnotes", { if (!offlineMode) {
method: "POST", fetch(remote + "/api/listnotes", {
body: JSON.stringify({ method: "POST",
secretKey: secretkey body: JSON.stringify({
}), secretKey: secretkey
headers: { }),
"Content-Type": "application/json; charset=UTF-8" headers: {
} "Content-Type": "application/json; charset=UTF-8"
}) }
.then((response) => { })
async function doStuff() { .then(async (response) => {
noteBox.contentEditable = false noteBox.contentEditable = false
selectedNote = 0 selectedNote = 0
noteBox.innerHTML = "" noteBox.innerHTML = ""
@ -769,7 +753,9 @@ document.addEventListener("DOMContentLoaded", function() {
try { try {
noteData["title"] = await decrypt(noteData["title"]) noteData["title"] = await decrypt(noteData["title"])
} catch (e) { } catch (e) {
location.href = "/migrate" if (!offlineMode) {
location.href = "/migrate"
}
} }
if (noteData["id"] > highestID) { if (noteData["id"] > highestID) {
@ -823,14 +809,12 @@ document.addEventListener("DOMContentLoaded", function() {
selectNote(highestID) selectNote(highestID)
selectLatestNote = false selectLatestNote = false
} }
} });
} else {
doStuff() console.log("Currently offline, refusing to update notes.")
}); }
} }
updateNotes()
newNote.addEventListener("click", async () => { newNote.addEventListener("click", async () => {
let noteName = "New note" let noteName = "New note"
selectLatestNote = true selectLatestNote = true
@ -882,27 +866,31 @@ document.addEventListener("DOMContentLoaded", function() {
} }
async function exportNotes() { async function exportNotes() {
let exportNotesFetch = await fetch(remote + "/api/exportnotes", { if (!offlineMode) {
method: "POST", let exportNotesFetch = await fetch(remote + "/api/exportnotes", {
body: JSON.stringify({ method: "POST",
secretKey: secretkey body: JSON.stringify({
}), secretKey: secretkey
headers: { }),
"Content-Type": "application/json; charset=UTF-8" headers: {
} "Content-Type": "application/json; charset=UTF-8"
}) }
let responseData = await exportNotesFetch.json() })
for (let i in responseData) { let responseData = await exportNotesFetch.json()
exportNotes.innerText = "Decrypting " + i + "/" + noteCount for (let i in responseData) {
exportNotes.innerText = "Decrypting " + i + "/" + noteCount
try { try {
responseData[i]["title"] = await decrypt(responseData[i]["title"]) responseData[i]["title"] = await decrypt(responseData[i]["title"])
responseData[i]["content"] = await decrypt(responseData[i]["content"]) responseData[i]["content"] = await decrypt(responseData[i]["content"])
} catch (e) { } catch (e) {
location.href = "/migrate" location.href = "/migrate"
}
} }
return responseData
} else {
displayError("You can't export notes while offline!")
} }
return responseData
} }
async function importNotes(plaintextNotes) { async function importNotes(plaintextNotes) {
@ -993,6 +981,7 @@ document.addEventListener("DOMContentLoaded", function() {
displayError("What's new in Burgernotes 2.0?\nRestyled client\nAdded changing passwords\nAdded importing notes\nChange the use of CryptoJS to Native AES GCM\nUse Argon2ID for hashing rather than the SHA family\nAdded a Proof-Of-Work CAPTCHA during signup\nMade the signup and login statuses more descriptive\nFixed various bugs and issues\nAdded markdown notes\nAdded support for uploading photos\nImproved privacy policy to be clearer about what is and isn't added\nRemoved some useless uses of cookies and replaced with localStorage\nFixed the privacy policy not redirecting correctly\nAdded a list of native clients\nMade the client support LibreJS and therefore GNU Icecat") displayError("What's new in Burgernotes 2.0?\nRestyled client\nAdded changing passwords\nAdded importing notes\nChange the use of CryptoJS to Native AES GCM\nUse Argon2ID for hashing rather than the SHA family\nAdded a Proof-Of-Work CAPTCHA during signup\nMade the signup and login statuses more descriptive\nFixed various bugs and issues\nAdded markdown notes\nAdded support for uploading photos\nImproved privacy policy to be clearer about what is and isn't added\nRemoved some useless uses of cookies and replaced with localStorage\nFixed the privacy policy not redirecting correctly\nAdded a list of native clients\nMade the client support LibreJS and therefore GNU Icecat")
} }
checknetwork() await checknetwork()
updateNotes()
}) })
// @license-end // @license-end