fix: clear social media cache for compatability

This commit is contained in:
DecafDev 2024-08-01 13:09:37 -06:00
parent 9779a52a49
commit 394a3f9c52

View file

@ -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();
}
}
}