mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
fix: clear social media cache for compatability
This commit is contained in:
parent
9779a52a49
commit
394a3f9c52
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ import { moveFocus } from "./focus-utils";
|
|||
import { PluginEvent } from "./event/types";
|
||||
import { isVersionLessThan } from "./utils";
|
||||
import License from "./svelte/shared/services/license";
|
||||
import { clearSocialMediaImageCache } from "./svelte/app/services/social-media-image-cache";
|
||||
|
||||
export default class VaultExplorerPlugin extends Plugin {
|
||||
settings: VaultExplorerPluginSettings = DEFAULT_SETTINGS;
|
||||
|
|
@ -188,6 +189,9 @@ export default class VaultExplorerPlugin extends Plugin {
|
|||
"vault-explorer-license-key";
|
||||
localStorage.removeItem(LOCAL_STORAGE_LICENSE_KEY);
|
||||
}
|
||||
if (isVersionLessThan(loadedVersion, "1.37.1")) {
|
||||
await clearSocialMediaImageCache();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue