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, 2 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 90ef2d8e..0b9dbf77 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -644,7 +644,7 @@
player.media.removeAttribute("controls");
// Set media type
- player.type = (player.media.tagName == "VIDEO" ? "video" : "audio");
+ player.type = player.media.tagName.toLowerCase();
// Add type class
_toggleClass(player.container, config.classes[player.type], true);
@@ -1357,7 +1357,7 @@
// Disabled for <video> for iPhone
// Since it doesn't allow customisation
- if (element.querySelectorAll("audio, video")[0].tagName === "VIDEO"
+ if (element.querySelectorAll("audio, video")[0].tagName.toLowerCase() === "video"
&& /iPhone/i.test(navigator.userAgent)) {
continue;
}