From 430894317735e8d89b68228c31286a31c4c5a3c9 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sun, 1 Dec 2013 00:30:41 +0100 Subject: [PATCH] update geflickt --- manifest.appcache | 2 +- uhr.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.appcache b/manifest.appcache index b517b8e..948a561 100644 --- a/manifest.appcache +++ b/manifest.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# 3.0.4 +# 3.0.5 COPYING index.html diff --git a/uhr.js b/uhr.js index 80dbcff..efce579 100644 --- a/uhr.js +++ b/uhr.js @@ -78,11 +78,11 @@ Uhr.prototype.setTheme = function(theme) { Uhr.prototype.update = function() { if (this.isOn()) { var now = new Date(); - var dotMinute = this.getDotMinute(now); - if (dotMinute == this.currentMinute) { + if (now.getMinutes() == this.currentMinute) { return; } - this.currentMinute = dotMinute; + this.currentMinute = now.getMinutes(); + var dotMinute = this.getDotMinute(now); var hour = this.getHour(now); var coarseMinute = this.getCoarseMinute(now); this.clear();