mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix autoplay
This commit is contained in:
parent
6540742c76
commit
7ab9d741bf
1 changed files with 5 additions and 8 deletions
|
@ -338,14 +338,11 @@ if (bpb) {
|
|||
player.ready(function() {
|
||||
var promise = player.play();
|
||||
|
||||
if (promise === undefined) {
|
||||
bpb.show();
|
||||
} else {
|
||||
promise.then(function() {
|
||||
bpb.show();
|
||||
}, function() {
|
||||
bpb.show();
|
||||
});
|
||||
if (promise !== undefined) {
|
||||
promise.then(_ => {
|
||||
}).catch(error => {
|
||||
bpb.show();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue