mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 06:27:59 +01:00
Ignore upload in service worker
This commit is contained in:
parent
64d28f0b1f
commit
6e87e330f3
1 changed files with 3 additions and 2 deletions
|
@ -56,8 +56,9 @@ self.addEventListener('activate', function (event) {
|
||||||
// Basic offline mode
|
// Basic offline mode
|
||||||
// Just respond with an offline error page for now
|
// Just respond with an offline error page for now
|
||||||
self.addEventListener('fetch', function(event) {
|
self.addEventListener('fetch', function(event) {
|
||||||
if (event.request.url.indexOf('stage.pony.fm') > -1) {
|
if (event.request.url.indexOf('stage.pony.fm') > -1 || event.request.url.indexOf('upload') > -1) {
|
||||||
event.respondWith(fetch(event.request));
|
// Ignore some requests
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
event.respondWith(
|
event.respondWith(
|
||||||
caches.match(event.request).then(function (response) {
|
caches.match(event.request).then(function (response) {
|
||||||
|
|
Loading…
Reference in a new issue