Add working but unstyled notify registration modal
This commit is contained in:
3
web/utils/browserPushNotifications.ts
Normal file
3
web/utils/browserPushNotifications.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function isPushNotificationSupported() {
|
||||
return 'serviceWorker' in navigator && 'PushManager' in window;
|
||||
}
|
||||
Reference in New Issue
Block a user