A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Improve `whatToCache` in service worker

+1 -1
+1 -1
src/Javascript/Workers/service.js
··· 29 29 .then(response => response.json()) 30 30 .then(tree => { 31 31 const filteredTree = tree.filter(t => !exclude.find(u => u === t)) 32 - const whatToCache = [ "", ".", "/", "application.js", "brain.js" ].concat(filteredTree) 32 + const whatToCache = [ self.location.origin, "application.js", "brain.js" ].concat(filteredTree) 33 33 return caches.open(KEY).then(c => Promise.all(whatToCache.map(x => c.add(x)))) 34 34 }) 35 35