aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-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 f30d334a..8d4ab203 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();
}
}