From acb2bb409bf57120f0492f383c00e1dca6730bbf Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 17 May 2023 12:19:15 +0200 Subject: [PATCH] Run the migrations on extension installation. --- source/background/setup.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/background/setup.ts b/source/background/setup.ts index 3fe75ff..1d2c07c 100644 --- a/source/background/setup.ts +++ b/source/background/setup.ts @@ -4,6 +4,8 @@ import browser from "webextension-polyfill"; +import {runMigrations} from "../migrations/migrations.js"; + import { clearHistory, openNextItemOrOptionsPage, @@ -30,6 +32,7 @@ browser.runtime.onStartup.addListener(async () => { }); browser.runtime.onInstalled.addListener(async () => { + await runMigrations(); await initializeContextMenus(); await setBadgeText();