Prevent running multiple resizer.
parent
8433f654af
commit
27a0a33298
|
@ -1,8 +1,9 @@
|
||||||
// H5P iframe Resizer
|
// H5P iframe Resizer
|
||||||
(function () {
|
(function () {
|
||||||
if (!window.postMessage || !window.addEventListener) {
|
if (!window.postMessage || !window.addEventListener || window.h5pResizerInitialized) {
|
||||||
return; // Not supported
|
return; // Not supported
|
||||||
}
|
}
|
||||||
|
window.h5pResizerInitialized = true;
|
||||||
|
|
||||||
// Map actions to handlers
|
// Map actions to handlers
|
||||||
var actionHandlers = {};
|
var actionHandlers = {};
|
||||||
|
|
Loading…
Reference in New Issue