From 884ea16773ce8344cb19b46a4d251c7904c4d99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 20 Aug 2015 13:46:20 +0200 Subject: [PATCH] misc: fix comparison of mtimes (do both as strings) --- 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 4564c3a..56af8da 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -224,7 +224,7 @@ var app = { var onGetMtime = function(key, mtime, ready){ var old_mtime = localStorage.getItem("momo-"+key+"-mtime"); if (mtime) { - if(mtime !== old_mtime) { + if(mtime.toString() !== old_mtime) { updateAvailable = true; } } else {