misc: record when checks for update are succesfully done

This commit is contained in:
Frédéric Péters 2015-08-20 14:02:53 +02:00
parent 3224283e9e
commit 04f272ce54
1 changed files with 3 additions and 0 deletions

View File

@ -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 !");