From 271378cff753ad5a73ef6de64df6dbaa77b16b4f Mon Sep 17 00:00:00 2001 From: James Muscat Date: Sat, 13 Apr 2024 15:24:00 +0100 Subject: [PATCH] Update start time in manifest when changing session. --- src/services/services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/services.js b/src/services/services.js index f3f0ccf..27c9152 100644 --- a/src/services/services.js +++ b/src/services/services.js @@ -38,7 +38,8 @@ export class Service extends EventEmitter { onSessionChange() { this.service = { ...this.service, - currentSessionIndex: (this.service.currentSessionIndex || 0) + 1 + currentSessionIndex: (this.service.currentSessionIndex || 0) + 1, + startTime: Date.now() }; this.emit(Events.SESSION_CHANGE, this.service.currentSessionIndex); }