From 058ac8073af6cbd5eab4b005a1083543ca345465 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 4 Sep 2013 14:49:42 +0300 Subject: [PATCH] chore(client) appcache: log -> confirm --- lib/client.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/client.js b/lib/client.js index a5c31c16..853a6846 100644 --- a/lib/client.js +++ b/lib/client.js @@ -257,8 +257,11 @@ var Util, DOM, CloudFunc, CloudCmd; function baseInit(pCallBack) { if (window.applicationCache) Events.add('updateready', function() { - Util.log('app cacheed'); - location.reload(); + var ret = confirm('An update is available. Reload now?'); + + if (ret) + location.reload(); + }, applicationCache); Events.add(['dragstart', 'dragend'], function () {