Update serviceWorker.js - show busy

This commit is contained in:
Buzz 2024-08-22 11:55:26 +10:00 committed by GitHub
parent 6613c61869
commit b150d0e6cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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