From f76f9cacfdba754658aeb75d4a594aa9c6ef2aff Mon Sep 17 00:00:00 2001 From: meandaD Date: Wed, 8 Nov 2023 16:27:07 +0100 Subject: [PATCH] fix ESLint errors --- web/ts/TUMLiveVjs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/ts/TUMLiveVjs.ts b/web/ts/TUMLiveVjs.ts index 56fd018b4..46d19369a 100644 --- a/web/ts/TUMLiveVjs.ts +++ b/web/ts/TUMLiveVjs.ts @@ -323,12 +323,12 @@ export const watchProgress = function (streamID: number, lastProgress: number) { let iOSReady = false; let intervalMillis = 10000; let jumpTo: number; - let tParam = +getQueryParam("t"); + const tParam = +getQueryParam("t"); // Fetch the user's video progress from the database and set the time in the player players[j].on("loadedmetadata", () => { duration = players[j].duration(); - jumpTo = isNaN(tParam) ? (lastProgress * duration) : tParam; + jumpTo = isNaN(tParam) ? lastProgress * duration : tParam; players[j].currentTime(jumpTo); });