Skip to content

Commit 8f70d55

Browse files
authored
Update account.html
1 parent 923f9f6 commit 8f70d55

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

account.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,13 @@
7474
function generateThreeDigitCode() {
7575
return Math.floor(100 + Math.random() * 900);
7676
}
77+
if (!localStorage.getItem('baseCode')) {
78+
const secretCode = generateThreeDigitCode();
79+
localStorage.setItem('baseCode', secretCode);
80+
} else {
81+
const secretCode = localStorage.getItem('baseCode');
82+
}
7783

78-
const secretCode = generateThreeDigitCode();
7984

8085
// Generate a key by shifting the baseKey based on the secret code
8186
function generateKeyFromCode(code) {

0 commit comments

Comments
 (0)