same last commit

pull/139/head
Aevann 2023-03-12 21:43:29 +02:00
parent e536210bfc
commit a708aeeb72
1 changed files with 5 additions and 2 deletions

View File

@ -13,8 +13,11 @@ markdown(document.getElementById("post-text"));
const save_checked = ['post-notify', 'post-new', 'post-nsfw', 'post-private', 'post-ghost']
for (const key of save_checked) {
const value = localStorage.getItem(key)
if (value)
document.getElementById(key).checked = (value == 'true')
if (value) {
const element = document.getElementById(key)
if (element) element.checked = (value == 'true')
}
}
function savetext() {