aboutsummaryrefslogtreecommitdiffhomepage
path: root/desktop
diff options
context:
space:
mode:
authorunthingable <[email protected]>2020-09-29 10:08:29 +0200
committerunthingable <[email protected]>2020-09-29 10:08:29 +0200
commit594241c2513564a72721acaea55685103ec31ee8 (patch)
tree10b6cebf3d02450d0894c52e9bb0acd5352662f4 /desktop
parent38223158cc61c17e9f7e3b847d4b6f6d51872f65 (diff)
downloadOrca-594241c2513564a72721acaea55685103ec31ee8.tar.gz
Orca-594241c2513564a72721acaea55685103ec31ee8.zip
minor fix, remove extraneous else
Diffstat (limited to 'desktop')
-rw-r--r--desktop/sources/scripts/clock.js17
1 files 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()
}
}
}