mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 02:13:48 +00:00
bugfix: paused time not reset
This commit is contained in:
@@ -130,6 +130,7 @@ class Timer {
|
||||
if (this.state === 'start') return;
|
||||
else if (this.duration === 0) return;
|
||||
else if (this.startedAt == null) {
|
||||
this._resetTimers();
|
||||
const now = this._getCurrentTime();
|
||||
this._startedAt = now;
|
||||
this._finishAt = now + this.duration;
|
||||
|
||||
Reference in New Issue
Block a user