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