This commit is contained in:
Adler Neves 2020-01-01 11:42:57 -03:00
parent 7a8822bbba
commit 48f6f4614c

View File

@ -30,15 +30,6 @@ self.addEventListener('fetch', function (evt) {
}));
});
function precache() {
return caches.open(CACHE).then(function (cache) {
return cache.addAll([
'./controlled.html',
'./asset'
]);
});
}
function fromNetwork(request, timeout) {
return new Promise(function (fulfill, reject) {
var timeoutId = setTimeout(reject, timeout);