From 3cfc16c9ee0f3f46c8b5692c02e5c569f40744c9 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Wed, 16 Oct 2024 02:00:24 +0800 Subject: [PATCH] fix: missing tabs permission --- src/domain/impls/Notification.ts | 2 -- wxt.config.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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',