From 6001b68b99a019a2dc59469b9becf2542d0c4d4e Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Fri, 11 Nov 2016 11:57:54 +0100 Subject: [PATCH] Making naming harder to misunderstand --- js/h5p.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/h5p.js b/js/h5p.js index 69829c2..c6767b5 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -85,14 +85,14 @@ H5P.init = function (target) { } // Determine if we can use full screen - if (H5P.fullscreenEnabled === undefined) { + if (H5P.fullscreenSupported === undefined) { /** * Use this variable to check if fullscreen is supported. Fullscreen can be * restricted when embedding since not all browsers support the native * fullscreen, and the semi-fullscreen solution doesn't work when embedded. * @type {boolean} */ - H5P.fullscreenEnabled = (H5P.isFramed && H5P.externalEmbed !== false) ? ((document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled) ? true : false) : true; + H5P.fullscreenSupported = (H5P.isFramed && H5P.externalEmbed !== false) ? ((document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled) ? true : false) : true; // We should consider document.msFullscreenEnabled when they get their // element sizing corrected. Ref. https://connect.microsoft.com/IE/feedback/details/838286/ie-11-incorrectly-reports-dom-element-sizes-in-fullscreen-mode-when-fullscreened-element-is-within-an-iframe } @@ -141,7 +141,7 @@ H5P.init = function (target) { var instance = H5P.newRunnable(library, contentId, $container, true, {standalone: true}); // Check if we should add and display a fullscreen button for this H5P. - if (contentData.fullScreen == 1 && H5P.fullscreenEnabled) { + if (contentData.fullScreen == 1 && H5P.fullscreenSupported) { H5P.jQuery('
').prependTo($container).children().click(function () { H5P.fullScreen($container, instance); });