Merge branch 'develop'

This commit is contained in:
molvqingtai 2024-10-16 16:41:01 +08:00
commit 544f58ecde
2 changed files with 1 additions and 3 deletions

View file

@ -4,10 +4,8 @@ import { EVENT } from '@/constants/event'
import { messenger } from '@/messenger' import { messenger } from '@/messenger'
class Notification { class Notification {
messages: TextMessage[] = []
async push(message: TextMessage) { async push(message: TextMessage) {
await messenger.sendMessage(EVENT.NOTIFICATION_PUSH, message) await messenger.sendMessage(EVENT.NOTIFICATION_PUSH, message)
this.messages.push(message)
return message.id return message.id
} }
} }

View file

@ -14,7 +14,7 @@ export default defineConfig({
manifest: ({ browser }) => { manifest: ({ browser }) => {
const common = { const common = {
name: displayName, name: displayName,
permissions: ['storage', 'notifications'], permissions: ['storage', 'notifications', 'tabs'],
homepage_url: homepage, homepage_url: homepage,
icons: { icons: {
'16': 'logo.png', '16': 'logo.png',