fix: undefined on strings
This commit is contained in:
parent
82e5b82572
commit
ba25ac93a5
@ -10,6 +10,7 @@ if ('serviceWorker' in navigator) {
|
|||||||
let registration;
|
let registration;
|
||||||
|
|
||||||
const showSkipWaitingPrompt = (event) => {
|
const showSkipWaitingPrompt = (event) => {
|
||||||
|
if(hubl.intl.t('serviceWorker.newUpdate') != undefined) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
position: 'bottom-end',
|
position: 'bottom-end',
|
||||||
backdrop: false,
|
backdrop: false,
|
||||||
@ -35,6 +36,7 @@ if ('serviceWorker' in navigator) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
wb.addEventListener('waiting', showSkipWaitingPrompt);
|
wb.addEventListener('waiting', showSkipWaitingPrompt);
|
||||||
|
Loading…
Reference in New Issue
Block a user