fix: missing tabs permission

This commit is contained in:
molvqingtai 2024-10-16 02:00:24 +08:00
parent bdf3ec8fce
commit 3cfc16c9ee
2 changed files with 1 additions and 3 deletions

View file

@ -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
}
}

View file

@ -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',