From a3b4e2709d12ff7d0130f03035ca39eea8d7751d Mon Sep 17 00:00:00 2001 From: softcup Date: Fri, 28 Mar 2014 11:52:11 +0800 Subject: [PATCH] fixed appCache.update error. InvalidStateError: Failed to execute 'update' on 'ApplicationCache': there is no application cache to update. --- app/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/index.html b/app/index.html index a3cfb14c..23138db0 100644 --- a/app/index.html +++ b/app/index.html @@ -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 () {