update
This commit is contained in:
parent
7a8822bbba
commit
48f6f4614c
|
@ -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) {
|
function fromNetwork(request, timeout) {
|
||||||
return new Promise(function (fulfill, reject) {
|
return new Promise(function (fulfill, reject) {
|
||||||
var timeoutId = setTimeout(reject, timeout);
|
var timeoutId = setTimeout(reject, timeout);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user