()
| 1 | import { localStorage } from '@linen/utilities/storage'; |
| 2 | |
| 3 | export const isNotificationEnabled = (): boolean => { |
| 4 | return ( |
| 5 | localStorage.get('notification.permission') === 'granted' && |
| 6 | window.Notification?.permission === 'granted' |
| 7 | ); |
| 8 | }; |
| 9 | |
| 10 | const defaultCallback = (callbackUrl: string) => { |
| 11 | window.open(callbackUrl, '_self'); |