File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/store/actions/notifications Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ const mapNotificationCallback = (
2020}
2121
2222export const addNotification = ( notification : Notifications ) => {
23+ // for some god forsaken reason webkit does not support it
24+ // and will happily crash on you with null pointer :)
25+ if ( navigator . userAgent . toLowerCase ( ) . includes ( 'linux' ) ) {
26+ return
27+ }
28+
2329 if ( ! enableNotifications ( ) ) return
2430 checkPermission ( )
2531 const { message, type } = notification
Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ import { setEnableNotifications } from '@store/notifications/notifications'
22import { isPermissionGranted , requestPermission } from '@tauri-apps/plugin-notification'
33
44export const checkPermission = async ( ) => {
5+ // for some god forsaken reason webkit does not support it
6+ // and will happily crash on you with null pointer :)
7+ if ( navigator . userAgent . toLowerCase ( ) . includes ( 'linux' ) ) {
8+ return
9+ }
10+
511 let permissionGranted = await isPermissionGranted ( )
612 if ( ! permissionGranted ) {
713 const permission = await requestPermission ( )
You can’t perform that action at this time.
0 commit comments