diff options
author | Sam Potts <me@sampotts.me> | 2018-01-31 19:33:00 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2018-01-31 19:33:00 +1100 |
commit | d76ef3ff914e0dca57c6f1e730188975d98acaa8 (patch) | |
tree | 51705f63316edb6beb18e2e52c62fa89a7cd6aa9 /src/js/plyr.js | |
parent | 2691c7c9d6ab5bcc18b29f2487b2f2e3515329c8 (diff) | |
download | plyr-d76ef3ff914e0dca57c6f1e730188975d98acaa8.tar.lz plyr-d76ef3ff914e0dca57c6f1e730188975d98acaa8.tar.xz plyr-d76ef3ff914e0dca57c6f1e730188975d98acaa8.zip |
Small UI tweaks and fix for instanceof issue
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 131f5a64..f64c15ae 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -1,6 +1,6 @@ // ========================================================================== // Plyr -// plyr.js v3.0.0-beta.10 +// plyr.js v3.0.0-beta.11 // https://github.com/sampotts/plyr // License: The MIT License (MIT) // ========================================================================== @@ -559,6 +559,10 @@ class Plyr { return true; } + if (this.isAudio) { + return true; + } + // Get audio tracks return this.media.mozHasAudio || Boolean(this.media.webkitAudioDecodedByteCount) || Boolean(this.media.audioTracks && this.media.audioTracks.length); } |