refactor: change storage key for private key to "key"
This commit is contained in:
parent
d76ab76017
commit
73f3b1d515
|
@ -196,7 +196,7 @@ function handleSkynetKernelRequestOverride(event: MessageEvent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var handleStorage = function (event: StorageEvent) {
|
var handleStorage = function (event: StorageEvent) {
|
||||||
if (event.key !== null && event.key !== "v1-seed") {
|
if (event.key !== null && event.key !== "key") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (logoutComplete === true) {
|
if (logoutComplete === true) {
|
||||||
|
@ -208,8 +208,8 @@ var handleStorage = function (event: StorageEvent) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.key === "v1-seed" && loginComplete === false) {
|
if (event.key === "key" && loginComplete === false) {
|
||||||
let userSeedString = window.localStorage.getItem("v1-seed");
|
let userSeedString = window.localStorage.getItem("key");
|
||||||
if (userSeedString === null) {
|
if (userSeedString === null) {
|
||||||
sendAuthUpdate();
|
sendAuthUpdate();
|
||||||
return;
|
return;
|
||||||
|
|
Reference in New Issue