From 4a33062d00c3fffee2e95828ae6d45eef2bba382 Mon Sep 17 00:00:00 2001 From: mohamadreza Date: Wed, 11 Sep 2024 20:16:01 +0330 Subject: [PATCH] feat(logoute): add logout btn --- script/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script/script.js b/script/script.js index 8d4a178..756749c 100644 --- a/script/script.js +++ b/script/script.js @@ -354,6 +354,7 @@ elm_code.addEventListener("input", () => { elm_logout_btn.addEventListener("click", () => { document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.salamlang.ir;"; + location.reload() }) window.addEventListener('load', () => {