fix bug on making posts

pull/139/head
Aevann 2023-03-12 21:42:13 +02:00
parent 07cfaa22d0
commit e536210bfc
1 changed files with 2 additions and 3 deletions

View File

@ -1,3 +1,5 @@
const submitButton = document.getElementById('submit-btn')
const save_value = ['post-title', 'post-text', 'post-url', 'sub']
for (const id of save_value) {
const value = localStorage.getItem(id)
@ -31,9 +33,6 @@ function savetext() {
}
const submitButton = document.getElementById('submit-btn')
function checkForRequired() {
const title = document.getElementById("post-title");
const url = document.getElementById("post-url");