mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-26 15:37:23 +00:00
Fix autoplay
This commit is contained in:
parent
6540742c76
commit
7ab9d741bf
@ -338,14 +338,11 @@ if (bpb) {
|
|||||||
player.ready(function() {
|
player.ready(function() {
|
||||||
var promise = player.play();
|
var promise = player.play();
|
||||||
|
|
||||||
if (promise === undefined) {
|
if (promise !== undefined) {
|
||||||
bpb.show();
|
promise.then(_ => {
|
||||||
} else {
|
}).catch(error => {
|
||||||
promise.then(function() {
|
bpb.show();
|
||||||
bpb.show();
|
});
|
||||||
}, function() {
|
|
||||||
bpb.show();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user