Skip to content

Commit

Permalink
chore: update template
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffnawroth committed Dec 22, 2024
1 parent a2e4556 commit 1ae3fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/composables/useWebExtensionStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ const storageInterface: StorageLikeAsync = {
return storage.local.set({ [key]: value })
},

// @ts-expect-error: missing types
async getItem(key: string) {
const storedData = await storage.local.get(key)

return storedData[key]
return storedData[key] as string
},
}

Expand Down
3 changes: 1 addition & 2 deletions src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ export async function getManifest() {
}
else {
// the sidebar_action does not work for chromium based
// @ts-expect-error: missing types
manifest.side_panel = {
(manifest as any).side_panel = {
default_path: 'dist/sidepanel/index.html',
}
}
Expand Down

0 comments on commit 1ae3fb5

Please sign in to comment.