aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index eb7b9f2d..a676f635 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1983,6 +1983,10 @@
// Speed-up
function _speedup(speed) {
+ if (!_is.array(config.speeds)) {
+ _warn('Invalid speeds format');
+ return;
+ }
if (!_is.number(speed)) {
var index = config.speeds.indexOf(config.currentSpeed);
if (index !== -1) {