Run the migrations on extension installation.

This commit is contained in:
Bauke 2023-05-17 12:19:15 +02:00
parent dfc42535f0
commit acb2bb409b
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 3 additions and 0 deletions

View File

@ -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();