From 594241c2513564a72721acaea55685103ec31ee8 Mon Sep 17 00:00:00 2001 From: unthingable Date: Tue, 29 Sep 2020 10:08:29 +0200 Subject: minor fix, remove extraneous else --- desktop/sources/scripts/clock.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/desktop/sources/scripts/clock.js b/desktop/sources/scripts/clock.js index 66a5448..95086cf 100644 --- a/desktop/sources/scripts/clock.js +++ b/desktop/sources/scripts/clock.js @@ -107,16 +107,15 @@ function Clock (client) { if (performance.now() - pulse.last < 2000) { return } this.untap() }, 2000) - } else { - if (pulse.count == 0) { - if (this.isPaused) { pulse.frame++ } - else { - if (pulse.frame > 0) { - this.setFrame(client.orca.f + pulse.frame) - pulse.frame = 0 - } - client.run() + } + if (pulse.count == 0) { + if (this.isPaused) { pulse.frame++ } + else { + if (pulse.frame > 0) { + this.setFrame(client.orca.f + pulse.frame) + pulse.frame = 0 } + client.run() } } } -- cgit v1.2.3