From bdf3ec8fce0a4b868bf95956bd6eac98a21e3385 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Mon, 14 Oct 2024 21:53:27 +0800 Subject: [PATCH 1/2] docs: update readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1e9ae96..0eebe94 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ The aim is to add chat room functionality to any website, you'll never feel alon **Install from Store** - [Chrome Web Store](https://chromewebstore.google.com/detail/webchat/cpaedhbidlpnbdfegakhiamfpndhjpgf) +- [Edge Web Store](https://microsoftedge.microsoft.com/addons/detail/mmfdplbomjjlgdffecapcpgjmhfhmiob) **Manual Installation** From 3cfc16c9ee0f3f46c8b5692c02e5c569f40744c9 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Wed, 16 Oct 2024 02:00:24 +0800 Subject: [PATCH 2/2] 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',