mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
fix: stop license from clearing after upgrading multiple vaults on the same device
This commit is contained in:
parent
c3b06261e1
commit
ee828028af
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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-----
|
||||
|
|
|
|||
Loading…
Reference in a new issue