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

Commit

Permalink
feat(logoute): add logout btn
Browse files Browse the repository at this point in the history
  • Loading branch information
tikrack committed Sep 11, 2024
1 parent c07d635 commit 08929f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ elm_code.addEventListener("input", () => {
});

elm_logout_btn.addEventListener("click", () => {
document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=*.salamlang.ir;";
})

window.addEventListener('load', () => {
Expand Down

0 comments on commit 08929f4

Please sign in to comment.