From 138f17a859b44c797a8dce93c1c059475aebf842 Mon Sep 17 00:00:00 2001 From: Aziz Hasanain Date: Thu, 25 Feb 2021 19:54:36 +0300 Subject: [PATCH] Small notification graphical bug on Windows --- src/App.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 1083d39..e6ca488 100644 --- a/src/App.vue +++ b/src/App.vue @@ -353,7 +353,7 @@ export default { if (messageData.sender != 1 && remote.Notification.isSupported()) { const notification = { title: messageData.name, - body: messageData.text, + body: messageData.text.replace(/\u{fffc}/gu, ""), silent: this.$store.state.playsound } @@ -363,6 +363,7 @@ export default { if (this.$store.state.playsound) this.notifSound.play() let notif = new remote.Notification(notification) + notif.on('click', (event, arg) => { if (chatData && chatData.id) { ipcRenderer.send('show_win')