mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
fix first highlights
This commit is contained in:
parent
122c4242ce
commit
d957b19f55
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user