diff --git a/src/domain/impls/Notification.ts b/src/domain/impls/Notification.ts index a8f5177..834a5fc 100644 --- a/src/domain/impls/Notification.ts +++ b/src/domain/impls/Notification.ts @@ -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 } } diff --git a/wxt.config.ts b/wxt.config.ts index 64db5ad..1c68242 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -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',