From ad452e2700f9122138c5410c036cb4b62e74dc29 Mon Sep 17 00:00:00 2001 From: Ghislain Loaec Date: Thu, 24 Sep 2015 11:29:15 +0200 Subject: [PATCH] updateFreq in milliseconds - Fixes #8085 --- www/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/index.js b/www/js/index.js index a1a05e5..c9f8900 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -229,7 +229,7 @@ var app = { checkForLastUpdateCheck: function(resolve, reject){ // Checklast Update var lastUpdate = localStorage.getItem("momo-timestamp") ? new Date(localStorage.getItem("momo-timestamp")) : new Date(0); - var timeDiff = ((new Date()).getTime() - lastUpdate.getTime()) / 1000; + var timeDiff = ((new Date()).getTime() - lastUpdate.getTime()); var updateRequired = timeDiff > app.manifest.meta.updateFreq; if(updateRequired){