aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2015-03-02 20:16:44 +1100
committerSam Potts <me@sampotts.me>2015-03-02 20:16:44 +1100
commit26bd4d08334c6a93aeb5fdde0cfe76c7acae56f1 (patch)
tree3fd888cebb09dbf86418fda26d3fec0c239ad447 /src
parentb6d5ba43ecdfc7740f0cb6e9338725a631cbaff7 (diff)
downloadplyr-26bd4d08334c6a93aeb5fdde0cfe76c7acae56f1.tar.lz
plyr-26bd4d08334c6a93aeb5fdde0cfe76c7acae56f1.tar.xz
plyr-26bd4d08334c6a93aeb5fdde0cfe76c7acae56f1.zip
Fix for fullscreen issues on Firefox
Fixes #38
Diffstat (limited to 'src')
-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 034b4d56..67d77e20 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1,6 +1,6 @@
// ==========================================================================
// Plyr
-// plyr.js v1.0.17
+// plyr.js v1.0.19
// https://github.com/sampotts/plyr
// ==========================================================================
// Credits: http://paypal.github.io/accessible-html5-video-player/
@@ -795,12 +795,12 @@
}
// Toggle fullscreen
- function _toggleFullscreen() {
+ function _toggleFullscreen(event) {
// Check for native support
var nativeSupport = fullscreen.supportsFullScreen;
// If it's a fullscreen change event, it's probably a native close
- if(event.type === fullscreen.fullScreenEventName) {
+ if(event && event.type === fullscreen.fullScreenEventName) {
config.fullscreen.active = fullscreen.isFullScreen();
}
// If there's native support, use it