Browse Source

fixed appCache.update error.

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

4
app/index.html

@ -31,7 +31,11 @@
scheduleUpdate = function (delay) { scheduleUpdate = function (delay) {
clearTimeout(updateTimeout); clearTimeout(updateTimeout);
updateTimeout = setTimeout(function () { updateTimeout = setTimeout(function () {
try {
appCache.update(); appCache.update();
} catch (ex) {
console.log('appCache.update: ' + ex);
}
}, delay || 300000); }, delay || 300000);
}, },
attach = function () { attach = function () {

Loading…
Cancel
Save