fix: Content scripts crash when using storage.defineItem
This commit is contained in:
+1
-1
@@ -295,7 +295,7 @@ function createStorage(): WxtStorage {
|
||||
{ migratedValue },
|
||||
);
|
||||
};
|
||||
browser.runtime.onInstalled.addListener(async ({ reason }) => {
|
||||
browser.runtime.onInstalled?.addListener(async ({ reason }) => {
|
||||
if (reason !== 'update') return;
|
||||
try {
|
||||
await migrate();
|
||||
|
||||
Reference in New Issue
Block a user