fix: 修复推送在mac os 13 以下 safari 不支持registration.showNotification的问题

pull/64/head
moonrailgun 2 years ago
parent 54ee9c2c9f
commit 960f6e6c23

@ -44,7 +44,7 @@ export function initNotify() {
tag: 'tailchat-message', tag: 'tailchat-message',
renotify: true, renotify: true,
}; };
if (registration) { if (registration && registration.showNotification) {
registration.showNotification(title, options); registration.showNotification(title, options);
} else { } else {
// fallback // fallback

Loading…
Cancel
Save