From 26bd4d08334c6a93aeb5fdde0cfe76c7acae56f1 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Mon, 2 Mar 2015 20:16:44 +1100 Subject: Fix for fullscreen issues on Firefox Fixes #38 --- src/js/plyr.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3