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;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
export const LOCAL_STORAGE_KEYS = {
|
||||
username: 'username',
|
||||
hasDisplayedNotificationModal: 'HAS_DISPLAYED_NOTIFICATION_MODAL',
|
||||
};
|
||||
|
||||
export function getLocalStorage(key) {
|
||||
|
||||
Reference in New Issue
Block a user