fix: undefined on strings

This commit is contained in:
Jean-Baptiste Pasquier 2021-04-08 21:25:14 +02:00
parent 82e5b82572
commit ba25ac93a5
1 changed files with 25 additions and 23 deletions

View File

@ -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);