File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 59
59
<dialog
60
60
ref =" dialog"
61
61
:aria-labelledby =" id + `-title`"
62
- class =" m-auto translate-y-2 bg-transparent opacity-0 transition-all transition-discrete duration-500 backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete backdrop:duration-500 open:translate-0 open:opacity-100 open:backdrop:opacity-100 starting:open:translate-y-2 starting:open:opacity-0 starting:open:backdrop:opacity-0"
62
+ class =" m-auto translate-y-2 bg-transparent opacity-0 transition-all transition-discrete duration-500 backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete backdrop:duration-500 open:translate-0 open:opacity-100 open:backdrop:opacity-100 dark:backdrop:bg-stone-800/70 starting:open:translate-y-2 starting:open:opacity-0 starting:open:backdrop:opacity-0"
63
63
closedby =" any"
64
64
@close =" close"
65
65
>
Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ export function useNotification() {
30
30
notification . value = undefined ;
31
31
}
32
32
33
- navigator . serviceWorker . getRegistration ( ) . then ( ( registration ) => {
34
- worker . value = registration ;
35
- } ) ;
33
+ if ( 'serviceWorker' in navigator ) {
34
+ navigator . serviceWorker . getRegistration ( ) . then ( ( registration ) => {
35
+ worker . value = registration ;
36
+ } ) ;
37
+ }
36
38
37
39
return {
38
40
notify,
You can’t perform that action at this time.
0 commit comments