File tree 1 file changed +4
-4
lines changed
packages/service-worker-notify/src/lib
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export function serviceWorkerNotifySnackbar(options: {lastNotifyVersion: string;
32
32
if ( event === 'service_worker_update_found' ) {
33
33
snackbarSignal . notify ( {
34
34
content : 'در حال بهروزرسانی برنامه...' ,
35
- duration : - 1 ,
35
+ duration : 'infinite' ,
36
36
} ) ;
37
37
}
38
38
else if ( event === 'service_worker_first_install' ) {
@@ -66,7 +66,7 @@ export function serviceWorkerNotifySnackbar(options: {lastNotifyVersion: string;
66
66
) {
67
67
snackbarSignal . notify ( {
68
68
content : message ,
69
- duration : - 1 ,
69
+ duration : 'infinite' ,
70
70
addCloseButton : true ,
71
71
action : {
72
72
label : 'مشاهدهی تغیرات' ,
@@ -80,7 +80,7 @@ export function serviceWorkerNotifySnackbar(options: {lastNotifyVersion: string;
80
80
else {
81
81
snackbarSignal . notify ( {
82
82
content : message ,
83
- duration : - 1 ,
83
+ duration : 'infinite' ,
84
84
addCloseButton : true ,
85
85
} ) ;
86
86
}
@@ -105,7 +105,7 @@ export function serviceWorkerNotifySnackbar(options: {lastNotifyVersion: string;
105
105
localStorage . setItem ( notifyLocalStorageKey , __package_version__ ) ;
106
106
snackbarSignal . notify ( {
107
107
content : 'به روز رسانی انجام شد.' ,
108
- duration : - 1 ,
108
+ duration : 'infinite' ,
109
109
action : {
110
110
label : 'بارگذاری مجدد' ,
111
111
handler : ( ) => window . location . reload ( ) ,
You can’t perform that action at this time.
0 commit comments