refactor: Replace Webpack with Vite (#53)
This commit is contained in:
11
src/pages/background/events/onUpdate.ts
Normal file
11
src/pages/background/events/onUpdate.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ExtensionStore } from '@shared/storage/ExtensionStore';
|
||||
|
||||
/**
|
||||
* Called when the extension is updated (or when the extension is reloaded in development mode)
|
||||
*/
|
||||
export default async function onUpdate() {
|
||||
await ExtensionStore.set({
|
||||
version: chrome.runtime.getManifest().version,
|
||||
lastUpdate: Date.now(),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user