mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(bug) fix stopping impersonation didn't clean up switcher entry
This commit is contained in:
parent
c5a806c65a
commit
b422152d91
@ -368,6 +368,7 @@
|
||||
await this.setAvatar(`${process.env.CLOUDFRONT}/images/${ids[0]}-avatar.png`);
|
||||
},
|
||||
async stopImpersonation() {
|
||||
this.$removeToken(this.$user().username);
|
||||
this.$cookies.set('token', this.$cookies.get('impersonator'));
|
||||
this.$cookies.remove('impersonator');
|
||||
setTimeout(() => window.location.reload(), 300);
|
||||
|
Loading…
x
Reference in New Issue
Block a user