Make externalDispatcher from framed content work again

semantics-font
Svein-Tore Griff With 2015-03-22 20:38:33 +01:00
parent d3453b8637
commit eb02a5942d
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ var H5P = H5P || {};
// Create object where external code may register and listen for H5P Events // Create object where external code may register and listen for H5P Events
H5P.externalDispatcher = new H5P.EventDispatcher(); H5P.externalDispatcher = new H5P.EventDispatcher();
if (H5P.isFramed && H5P.externalEmbed === false) { if (H5P.isFramed && H5P.externalEmbed !== true) {
H5P.externalDispatcher.on('xAPI', window.top.H5P.externalDispatcher.trigger); H5P.externalDispatcher.on('xAPI', window.top.H5P.externalDispatcher.trigger);
} }