mirror of https://github.com/dirtbags/moth.git
Merge branch '81-support-downloading-open-content' of https://github.com/dirtbags/moth into 81-support-downloading-open-content
This commit is contained in:
commit
9b047e7821
|
@ -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 {
|
||||
|
|
|
@ -137,7 +137,8 @@ function drawCacheButton(teamId) {
|
|||
} else {
|
||||
cacher.style.display = "none"
|
||||
}
|
||||
}).catch( ex => {
|
||||
})
|
||||
.catch(ex => {
|
||||
cacher.style.display = "none"
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue