From 960f6e6c23081585a1698f28176bd5fc3482e7f8 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 3 Jan 2023 14:44:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E5=9C=A8mac=20os=2013=20=E4=BB=A5=E4=B8=8B=20safari=20?= =?UTF-8?q?=E4=B8=8D=E6=94=AF=E6=8C=81registration.showNotification?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/web/plugins/com.msgbyte.notify/src/notify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/web/plugins/com.msgbyte.notify/src/notify.ts b/client/web/plugins/com.msgbyte.notify/src/notify.ts index 62ddb214..e5d209f3 100644 --- a/client/web/plugins/com.msgbyte.notify/src/notify.ts +++ b/client/web/plugins/com.msgbyte.notify/src/notify.ts @@ -44,7 +44,7 @@ export function initNotify() { tag: 'tailchat-message', renotify: true, }; - if (registration) { + if (registration && registration.showNotification) { registration.showNotification(title, options); } else { // fallback