Fix check/use of incorrect API function
This will solve fullscreen issues in Firefoxpull/101/head
parent
588f096afe
commit
1c12b7bbf7
|
@ -23,7 +23,7 @@ H5P.$window = H5P.jQuery(window);
|
||||||
H5P.instances = [];
|
H5P.instances = [];
|
||||||
|
|
||||||
// Detect if we support fullscreen, and what prefix to use.
|
// Detect if we support fullscreen, and what prefix to use.
|
||||||
if (document.documentElement.requestFullScreen) {
|
if (document.documentElement.requestFullscreen) {
|
||||||
/**
|
/**
|
||||||
* Browser prefix to use when entering fullscreen mode.
|
* Browser prefix to use when entering fullscreen mode.
|
||||||
* undefined means no fullscreen support.
|
* undefined means no fullscreen support.
|
||||||
|
@ -676,7 +676,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body, forceSemiFull
|
||||||
});
|
});
|
||||||
|
|
||||||
if (H5P.fullScreenBrowserPrefix === '') {
|
if (H5P.fullScreenBrowserPrefix === '') {
|
||||||
$element[0].requestFullScreen();
|
$element[0].requestFullscreen();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var method = (H5P.fullScreenBrowserPrefix === 'ms' ? 'msRequestFullscreen' : H5P.fullScreenBrowserPrefix + 'RequestFullScreen');
|
var method = (H5P.fullScreenBrowserPrefix === 'ms' ? 'msRequestFullscreen' : H5P.fullScreenBrowserPrefix + 'RequestFullScreen');
|
||||||
|
|
Loading…
Reference in New Issue