Browse Source

fixed appCache.update error.

InvalidStateError: Failed to execute 'update' on 'ApplicationCache': there is no application cache to update.
master
softcup 10 years ago
parent
commit
a3b4e2709d
  1. 6
      app/index.html

6
app/index.html

@ -31,7 +31,11 @@ @@ -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…
Cancel
Save