From 88d0a23badafb97982988c48f5e7ade3266c4428 Mon Sep 17 00:00:00 2001 From: Katsuki <1313124+K4tsuki@users.noreply.github.com> Date: Tue, 8 Mar 2022 12:43:46 +0700 Subject: [PATCH] Fix firefox notification --- .../Notification/LocalNotification/BrowserNotifications.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/Notification/LocalNotification/BrowserNotifications.js b/src/libs/Notification/LocalNotification/BrowserNotifications.js index cf775a56eae..e1d993475ed 100644 --- a/src/libs/Notification/LocalNotification/BrowserNotifications.js +++ b/src/libs/Notification/LocalNotification/BrowserNotifications.js @@ -79,8 +79,7 @@ function push({ setTimeout(notification.close.bind(notification), delay); } - notification.onclick = (event) => { - event.preventDefault(); + notification.onclick = () => { onClick(); window.parent.focus(); window.focus();