refactor: change storage key for private key to "key"

This commit is contained in:
Derrick Hammer 2023-07-17 13:43:05 -04:00
parent d76ab76017
commit 73f3b1d515
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ function handleSkynetKernelRequestOverride(event: MessageEvent) {
}
var handleStorage = function (event: StorageEvent) {
if (event.key !== null && event.key !== "v1-seed") {
if (event.key !== null && event.key !== "key") {
return;
}
if (logoutComplete === true) {
@ -208,8 +208,8 @@ var handleStorage = function (event: StorageEvent) {
return;
}
if (event.key === "v1-seed" && loginComplete === false) {
let userSeedString = window.localStorage.getItem("v1-seed");
if (event.key === "key" && loginComplete === false) {
let userSeedString = window.localStorage.getItem("key");
if (userSeedString === null) {
sendAuthUpdate();
return;