Apply suggestions from code review

Co-Authored-By: Neale Pickett <neale@woozle.org>
This commit is contained in:
int00h5525 2019-11-07 13:25:48 -06:00 committed by GitHub
parent 3e079616c1
commit 1ea739207b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,8 @@
function pwa_init() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register("./sw.js").then(function(reg) {
}).catch(function(err) {
})
.catch(err => {
console.warn("Error while registering service worker", err)
})
} else {

View File

@ -133,7 +133,8 @@ function drawCacheButton(teamId) {
} else {
cacher.style.display = "none"
}
}).catch( ex => {
})
.catch(ex => {
cacher.style.display = "none"
})
}