Feat: keep if after leaving
This commit is contained in:
parent
d1c7f15bd7
commit
196cbc26e2
1 changed files with 16 additions and 16 deletions
2
index.js
2
index.js
|
@ -59,8 +59,8 @@ document.addEventListener('alpine:init', () => {
|
|||
leave() {
|
||||
this.joined = false;
|
||||
this.name = "";
|
||||
this.id = "";
|
||||
localStorage.clear();
|
||||
localStorage.setItem("id", this.id)
|
||||
Alpine.store("remoteState").disconnect();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue