feat: clear smi cache on migration

This commit is contained in:
DecafDev 2024-09-10 21:13:01 -06:00
parent 9473ed44b6
commit cf845351d8

View file

@ -210,6 +210,12 @@ export default class VaultExplorerPlugin extends Plugin {
localStorage.removeItem(LOCAL_STORAGE_LICENSE_KEY);
}
if (isVersionLessThan(loadedVersion, "1.37.1")) {
console.log("Clearing image cache");
await clearSMICache();
}
if (isVersionLessThan(loadedVersion, "1.44.1")) {
//socialMediaImageUrl -> smiUrl
console.log("Clearing image cache");
await clearSMICache();
}
}