Prevent running multiple resizer.

semantics-font
Frode Petterson 2015-04-21 15:08:59 +02:00 committed by Svein-Tore Griff With
parent b3dea65fd8
commit cdceb41d74
1 changed files with 2 additions and 1 deletions

View File

@ -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 = {};