JI-1010 Add disable fullscreen feature for embeds
parent
fc044630bc
commit
53adda67c2
|
@ -74,7 +74,7 @@ H5P.init = function (target) {
|
|||
* fullscreen, and the semi-fullscreen solution doesn't work when embedded.
|
||||
* @type {boolean}
|
||||
*/
|
||||
H5P.fullscreenSupported = !H5P.fullscreenDisabled && (!(H5P.isFramed && H5P.externalEmbed !== false) || !!(document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled));
|
||||
H5P.fullscreenSupported = !H5PIntegration.fullscreenDisabled && !H5P.fullscreenDisabled && (!(H5P.isFramed && H5P.externalEmbed !== false) || !!(document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled));
|
||||
// -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
|
||||
// Update: Seems to be no need as they've moved on to Webkit
|
||||
|
|
Loading…
Reference in New Issue