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 434bb9b commit 4a33062
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 4a33062

Please sign in to comment.