Update serviceWorker.js - show busy
This commit is contained in:
parent
6613c61869
commit
b150d0e6cf
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
async function handleFetch(request) {
|
||||
// Perform the original fetch request and store the result in order to modify the response.
|
||||
try {
|
||||
// show in gui were fetching/busy doing disk read/s...
|
||||
document.getElementById("loading").style.display = "inline";
|
||||
var r = await fetch(request);
|
||||
}
|
||||
catch (e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue