fix: stop license from clearing after upgrading multiple vaults on the same device

This commit is contained in:
DecafDev 2024-07-30 02:40:16 -06:00
parent c3b06261e1
commit ee828028af
2 changed files with 2 additions and 2 deletions

View file

@ -174,7 +174,7 @@ export default class VaultExplorerPlugin extends Plugin {
const newData = preformMigrations(loadedVersion, loadedData);
currentData = newData;
if (isVersionLessThan(loadedVersion, "1.36.0")) {
console.log("Cleaning up old data");
console.log("Cleaning up old keys from local storage");
const LOCAL_STORAGE_DEVICE_REGISTERED =
"vault-explorer-device-registration";
localStorage.removeItem(LOCAL_STORAGE_DEVICE_REGISTERED);

View file

@ -2,7 +2,7 @@ import Logger from "js-logger";
import { writable } from "svelte/store";
import crypto from "crypto";
const LOCAL_STORAGE_LICENSE_KEY = "vault-explorer-license-key";
const LOCAL_STORAGE_LICENSE_KEY = "vault-explorer-license";
const PUBLIC_KEY_PEM = `
-----BEGIN PUBLIC KEY-----