mirror of
https://github.com/Cronocide/WebMessage.git
synced 2025-01-22 11:18:25 +00:00
Merge branch 'main' of https://github.com/sgtaziz/WebMessage into main
This commit is contained in:
commit
d89f129f26
@ -356,7 +356,7 @@ export default {
|
||||
|
||||
const notification = {
|
||||
title: messageData.name,
|
||||
body: messageData.text,
|
||||
body: messageData.text.replace(/\u{fffc}/gu, ""),
|
||||
silent: !this.$store.state.systemSound
|
||||
}
|
||||
|
||||
@ -366,6 +366,7 @@ export default {
|
||||
|
||||
if (!this.$store.state.systemSound) this.notifSound.play()
|
||||
let notif = new remote.Notification(notification)
|
||||
|
||||
notif.on('click', (event, arg) => {
|
||||
if (chatData && chatData.id) {
|
||||
ipcRenderer.send('show_win')
|
||||
|
Loading…
Reference in New Issue
Block a user