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