aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/plyr.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index d4c3d392..7b4ddd5b 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -311,10 +311,10 @@ class Plyr {
play() {
// Return the promise (for HTML5)
if (this.ads.enabled && !this.ads.initialized) {
- this.ads.managerPromise.then(() => {
+ return this.ads.managerPromise.then(() => {
this.ads.play();
}).catch(() => {
- return this.media.play();
+ this.media.play();
});
} else {
return this.media.play();