From 04f272ce542a2d04d2c48958aa4cbe6ab48ea2d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 20 Aug 2015 14:02:53 +0200 Subject: [PATCH] misc: record when checks for update are succesfully done --- www/js/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/js/index.js b/www/js/index.js index 4acb607..08d77a5 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -238,6 +238,9 @@ var app = { reject(); } } else { + /* record that a check for update was succesfully done */ + localStorage.setItem("momo-timestamp", (new Date()).toString()); + if(updateAvailable){ app.flash(tmpl('momo-update-available-tmpl', { mtime: app.utils.formatDate(mtime) }), 'success'); app.utils.setLoadingMsg("Mise à jour disponible !");