mirror of
https://github.com/iv-org/invidious.git
synced 2026-03-10 21:08:29 -05:00
Merge 584c8152559ca38493fcfee3cb8b5bc94b0feea8 into 749791cdf1316bc89415d27d503042d3f6b3f398
This commit is contained in:
commit
3df82b080d
@ -132,7 +132,7 @@ var timeupdate_last_ts = 5;
|
|||||||
player.on('timeupdate', function () {
|
player.on('timeupdate', function () {
|
||||||
// Only update once every second
|
// Only update once every second
|
||||||
let current_ts = Math.floor(player.currentTime());
|
let current_ts = Math.floor(player.currentTime());
|
||||||
if (current_ts > timeupdate_last_ts) timeupdate_last_ts = current_ts;
|
if (current_ts != timeupdate_last_ts) timeupdate_last_ts = current_ts;
|
||||||
else return;
|
else return;
|
||||||
|
|
||||||
// YouTube links
|
// YouTube links
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user