From 0b30b723efbac6659810df2d23fe9150602b7cb3 Mon Sep 17 00:00:00 2001 From: Aaron Klinker Date: Tue, 5 Sep 2023 17:35:18 -0500 Subject: [PATCH] chore: Read default token from `.env` file during development --- src/entrypoints/background.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/entrypoints/background.ts b/src/entrypoints/background.ts index 8ab6013..62c7291 100644 --- a/src/entrypoints/background.ts +++ b/src/entrypoints/background.ts @@ -13,6 +13,9 @@ export default defineBackground(() => { }); async function initalizeStorage() { + const defaultToken = import.meta.env.VITE_DEFAULT_TOKEN; + if (defaultToken) await extensionStorage.setItem("githubPat", defaultToken); + await extensionStorage.setItem("customLists", { all: DEFAULT_CUSTOM_LIST_ALL, });