Merge branch 'develop'
This commit is contained in:
commit
544f58ecde
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue