Skip to content

Commit

Permalink
chore: Read default token from .env file during development
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Sep 5, 2023
1 parent 6ea4220 commit 0b30b72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/entrypoints/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 0b30b72

Please sign in to comment.