diff --git a/js/h5p.js b/js/h5p.js index 9d40789..3042977 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -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; }