From 73d41b72f293ac2d4bad1f7b3e9c64b5357e7e4d Mon Sep 17 00:00:00 2001 From: mohamadreza Date: Wed, 11 Sep 2024 01:30:02 +0330 Subject: [PATCH] feat(validate): add validate null --- script/script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/script.js b/script/script.js index e50d8c0..88bb3cb 100644 --- a/script/script.js +++ b/script/script.js @@ -212,7 +212,7 @@ window.addEventListener('load', () => { checkDefault(); - if (getCookie("token")) { + if (getCookie("token") !== "") { token = getCookie("token") } @@ -233,7 +233,9 @@ elm_toggle.addEventListener("change", () => { }) elm_save.addEventListener("click", () => { - + if (token !== null) { + + } }) // Init