fix: Content scripts crash when using storage.defineItem

This commit is contained in:
Aaron Klinker
2024-02-24 08:13:49 -06:00
parent 3f149ac4fa
commit 77e6d1f5a4
+1 -1
View File
@@ -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();