Skip to content

Commit

Permalink
simplified code
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanan committed Aug 12, 2024
1 parent 6aac84a commit 73cd981
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ts/stringutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,8 @@ export namespace StringUtils {
})
.reduce((prev, current) => prev + current, 0);

// time played
let currentTime = player.getCurrentTime();

// And minus time played
time = duration - currentTime;
// And remaning ads duration minus time played
time = duration - player.getCurrentTime();
}
}

Expand Down

0 comments on commit 73cd981

Please sign in to comment.