mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-31 22:51:39 +01:00
Merge pull request #578 from vector-im/fix-progressbar
Fix progressbar not working on attachment uploads
This commit is contained in:
commit
c47f872f6f
@ -69,7 +69,14 @@ async function purgeOldCaches() {
|
||||
}
|
||||
|
||||
self.addEventListener('fetch', (event) => {
|
||||
event.respondWith(handleRequest(event.request));
|
||||
/*
|
||||
service worker shouldn't handle xhr uploads because otherwise
|
||||
the progress events won't fire.
|
||||
This has to do with xhr not being supported in service workers.
|
||||
*/
|
||||
if (event.request.method === "GET") {
|
||||
event.respondWith(handleRequest(event.request));
|
||||
}
|
||||
});
|
||||
|
||||
function isCacheableThumbnail(url) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user