aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/js/plyr.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index ca81004a..b73b5357 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -371,7 +371,7 @@ class Plyr {
return;
}
- this.media.pause();
+ return this.media.pause();
}
/**
@@ -411,9 +411,9 @@ class Plyr {
const toggle = is.boolean(input) ? input : !this.playing;
if (toggle) {
- this.play();
+ return this.play();
} else {
- this.pause();
+ return this.pause();
}
}