fix first highlights

This commit is contained in:
Felix Roos 2022-11-13 02:00:09 +01:00
parent 122c4242ce
commit d957b19f55
2 changed files with 1 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}