fixed appCache.update error.
InvalidStateError: Failed to execute 'update' on 'ApplicationCache': there is no application cache to update.
This commit is contained in:
parent
ead7679566
commit
a3b4e2709d
@ -31,7 +31,11 @@
|
||||
scheduleUpdate = function (delay) {
|
||||
clearTimeout(updateTimeout);
|
||||
updateTimeout = setTimeout(function () {
|
||||
appCache.update();
|
||||
try {
|
||||
appCache.update();
|
||||
} catch (ex) {
|
||||
console.log('appCache.update: ' + ex);
|
||||
}
|
||||
}, delay || 300000);
|
||||
},
|
||||
attach = function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user