From d957b19f559739890ea21905e69d1218f8dec43a Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 13 Nov 2022 02:00:09 +0100 Subject: [PATCH] fix first highlights --- packages/core/cyclist.mjs | 2 +- packages/core/time.mjs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/core/cyclist.mjs b/packages/core/cyclist.mjs index 4112e1c9..562a91b0 100644 --- a/packages/core/cyclist.mjs +++ b/packages/core/cyclist.mjs @@ -47,7 +47,7 @@ export class Cyclist { ); } getPhase() { - return this.getTime() - this.origin; + return this.getTime() - this.origin - this.latency; } setStarted(v) { this.started = v; diff --git a/packages/core/time.mjs b/packages/core/time.mjs index 296ea5b9..80daaf53 100644 --- a/packages/core/time.mjs +++ b/packages/core/time.mjs @@ -1,4 +1,3 @@ -console.log('load time.mjs'); let time; export function getTime() { if (!time) { @@ -8,6 +7,5 @@ export function getTime() { } export function setTime(func) { - console.log('setTime!'); time = func; }