aboutsummaryrefslogtreecommitdiffstats
path: root/demo/dist/demo.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-08-14 00:02:01 +1000
committerSam Potts <sam@potts.es>2018-08-14 00:02:01 +1000
commitb57b7b2153c468d1457f657641a31f36ec61013b (patch)
tree4159a6173e7c480448b091f4c626e637598a8299 /demo/dist/demo.js
parent48bf36831611a854f24f8bc9f40d0944c381bd29 (diff)
downloadplyr-b57b7b2153c468d1457f657641a31f36ec61013b.tar.lz
plyr-b57b7b2153c468d1457f657641a31f36ec61013b.tar.xz
plyr-b57b7b2153c468d1457f657641a31f36ec61013b.zip
v3.4.0
- Accessibility improvements (see #905) - Improvements to the way the controls work on iOS - Demo code clean up - YouTube quality selection removed due to their poor support for it. As a result, the `qualityrequested` event has been removed - Controls spacing improvements - Fix for pressed property missing with custom controls (Fixes #1062) - Fix #1153: Captions language fallback (thanks @friday) - Fix for setting pressed property of undefined (Fixes #1102)
Diffstat (limited to 'demo/dist/demo.js')
-rw-r--r--demo/dist/demo.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/demo/dist/demo.js b/demo/dist/demo.js
index 44f77df4..8363e33f 100644
--- a/demo/dist/demo.js
+++ b/demo/dist/demo.js
@@ -4118,9 +4118,10 @@ typeof navigator === "object" && (function () {
// Remove class on blur
document.addEventListener('focusout', function (event) {
- if (container.contains(event.target)) {
+ if (!event.target.classList || container.contains(event.target)) {
return;
}
+
event.target.classList.remove(tabClassName);
});
@@ -4135,7 +4136,7 @@ typeof navigator === "object" && (function () {
setTimeout(function () {
var focused = document.activeElement;
- if (!focused || container.contains(focused)) {
+ if (!focused || !focused.classList || container.contains(focused)) {
return;
}