Run the migrations on extension installation.
This commit is contained in:
parent
dfc42535f0
commit
acb2bb409b
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
import browser from "webextension-polyfill";
|
import browser from "webextension-polyfill";
|
||||||
|
|
||||||
|
import {runMigrations} from "../migrations/migrations.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
clearHistory,
|
clearHistory,
|
||||||
openNextItemOrOptionsPage,
|
openNextItemOrOptionsPage,
|
||||||
|
@ -30,6 +32,7 @@ browser.runtime.onStartup.addListener(async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
browser.runtime.onInstalled.addListener(async () => {
|
browser.runtime.onInstalled.addListener(async () => {
|
||||||
|
await runMigrations();
|
||||||
await initializeContextMenus();
|
await initializeContextMenus();
|
||||||
await setBadgeText();
|
await setBadgeText();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue