Refactor canHasFullscreen

HFP-339
improved-embed-and-download^2
Timothy Lim 2016-12-13 16:04:57 +01:00
parent 1058dab02d
commit f0d65d4f9d
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ H5P.init = function (target) {
* @deprecated since version 1.11
* @type {boolean}
*/
H5P.canHasFullScreen = (H5P.isFramed && H5P.externalEmbed !== false) ? ((document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled) ? true : false) : true;
H5P.canHasFullScreen = HFP.fullscreenSupported;
}
// H5Ps added in normal DIV.