Skip to content

Commit

Permalink
fix ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
YiranDuan721 committed Nov 8, 2023
1 parent 878d7ff commit f76f9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/ts/TUMLiveVjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit f76f9ca

Please sign in to comment.