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