Fixed old fullscreen exit in iframe.

d6
Frode Petterson 2015-02-24 16:02:14 +01:00
parent 1fef537c8c
commit 0c5aacfa24
1 changed files with 3 additions and 1 deletions

View File

@ -290,9 +290,11 @@ H5P.fullScreen = function ($element, instance, exitCallback, body) {
H5P.isFullscreen = true;
H5P.exitFullScreen = function () {
window.top.H5P.exitFullScreen();
};
H5P.on(instance, 'exitFullScreen', function () {
H5P.isFullscreen = false;
H5P.exitFullScreen = undefined;
};
});
return;
}