Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
feat(validate): add validate null
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadreza1388 committed Sep 10, 2024
1 parent dbac710 commit 73d41b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ window.addEventListener('load', () => {

checkDefault();

if (getCookie("token")) {
if (getCookie("token") !== "") {
token = getCookie("token")
}

Expand All @@ -233,7 +233,9 @@ elm_toggle.addEventListener("change", () => {
})

elm_save.addEventListener("click", () => {

if (token !== null) {

}
})

// Init
Expand Down

0 comments on commit 73d41b7

Please sign in to comment.