From edb7546df217f05fa6bb6da1bcb739551559b0f3 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Thu, 14 Apr 2016 11:31:03 +0200 Subject: [PATCH] display warning message when impossible to update manifest (#10647) The reason of this is very probably missing network connection --- www/js/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/js/index.js b/www/js/index.js index c186462..5a36215 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -1360,7 +1360,6 @@ var app = { } ); }; - app.loadManifest( function(){ localStorage.setItem('momo-manifest-mtime', app.manifestMtime); @@ -1368,8 +1367,8 @@ var app = { localStorage.setItem('momo-updated-at', new Date()); loadAssets(resolve, reject); }, - function(){ - loadAssets(resolve, reject); + function() { + app.flash("Mise à jour impossible. Veuillez vous assurer que vous êtes connectés", 'danger'); } ); },