mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:48:56 +00:00
[ticket/17321] Fix eslint issues
PHPBB3-17321
This commit is contained in:
parent
ad715dac08
commit
3973fbe649
1 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
function webpushWorkerUpdate() {
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.getRegistration(serviceWorkerUrl)
|
||||
.then((registration) => {
|
||||
.then(registration => {
|
||||
registration.update();
|
||||
})
|
||||
.catch(error => {
|
||||
|
@ -12,6 +12,7 @@ function webpushWorkerUpdate() {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Do not redeclare function if exist
|
||||
if (typeof domReady === 'undefined') {
|
||||
window.domReady = function(callBack) {
|
||||
|
@ -20,9 +21,10 @@ if (typeof domReady === 'undefined') {
|
|||
} else {
|
||||
callBack();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/* global domReady */
|
||||
domReady(() => {
|
||||
/* global serviceWorkerUrl */
|
||||
webpushWorkerUpdate();
|
||||
|
|
Loading…
Add table
Reference in a new issue