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 5959 <dialog
6060 ref =" dialog"
6161 :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"
6363 closedby =" any"
6464 @close =" close"
6565 >
Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ export function useNotification() {
3030 notification . value = undefined ;
3131 }
3232
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+ }
3638
3739 return {
3840 notify,
You can’t perform that action at this time.
0 commit comments