refract: broadcast state

- ability to broadcast state without recalculating timer
This commit is contained in:
cv
2021-10-31 11:20:35 +01:00
parent 5a68d292e1
commit 0bb728d76c
2 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -136,9 +136,9 @@ export class Timer {
}
// getObject
getObject() {
getObject(update = true) {
// update timer
this.update();
if (update) this.update();
// update timetag
this.timeTag = stringFromMillis(this.current);