fix: missing tabs permission
This commit is contained in:
parent
bdf3ec8fce
commit
3cfc16c9ee
2 changed files with 1 additions and 3 deletions
|
@ -4,10 +4,8 @@ import { EVENT } from '@/constants/event'
|
|||
import { messenger } from '@/messenger'
|
||||
|
||||
class Notification {
|
||||
messages: TextMessage[] = []
|
||||
async push(message: TextMessage) {
|
||||
await messenger.sendMessage(EVENT.NOTIFICATION_PUSH, message)
|
||||
this.messages.push(message)
|
||||
return message.id
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ export default defineConfig({
|
|||
manifest: ({ browser }) => {
|
||||
const common = {
|
||||
name: displayName,
|
||||
permissions: ['storage', 'notifications'],
|
||||
permissions: ['storage', 'notifications', 'tabs'],
|
||||
homepage_url: homepage,
|
||||
icons: {
|
||||
'16': 'logo.png',
|
||||
|
|
Loading…
Reference in a new issue