mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:27 -04:00
fix incorrect use of setinterval in js
This commit is contained in:
parent
c28b1f6fb9
commit
5a08dfa72f
2 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,7 @@ if (location.pathname.startsWith('/embed/')) {
|
|||
|
||||
player.on('error', function (event) {
|
||||
if (player.error().code === 2 || player.error().code === 4) {
|
||||
setInterval(setTimeout(function (event) {
|
||||
setTimeout(function (event) {
|
||||
console.log('An error occured in the player, reloading...');
|
||||
|
||||
var currentTime = player.currentTime();
|
||||
|
@ -88,7 +88,7 @@ player.on('error', function (event) {
|
|||
if (!paused) {
|
||||
player.play();
|
||||
}
|
||||
}, 5000), 5000);
|
||||
}, 5000);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue