Fix autoplay

pull/258/head
Omar Roth 6 years ago
parent 6540742c76
commit 7ab9d741bf

@ -338,12 +338,9 @@ 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();
}, function() {
bpb.show(); bpb.show();
}); });
} }

Loading…
Cancel
Save