Skip to content

Commit 8875df3

Browse files
authored
Fixing strike display in account.html
1 parent f8d52ff commit 8875df3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/account.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@
207207
}
208208

209209
function logout() {
210+
const usernameEncoded = localStorage.getItem('username');
211+
const key = generateKeyFromCode(secretCode);
212+
const username = decodeUsername(usernameEncoded, key);
213+
210214
localStorage.removeItem('loggedIn');
211215
localStorage.removeItem('username');
212216
window.location.href = 'account.html';

0 commit comments

Comments
 (0)