Critical bug fix for safari

d6
Svein-Tore Griff With 2015-03-06 12:56:41 +01:00
parent 96b1014f80
commit b45bfe770b
1 changed files with 2 additions and 3 deletions

View File

@ -215,12 +215,11 @@ H5P.init = function () {
// Insert H5Ps that should be in iframes. // Insert H5Ps that should be in iframes.
H5P.jQuery("iframe.h5p-iframe").each(function () { H5P.jQuery("iframe.h5p-iframe").each(function () {
var contentId = H5P.jQuery(this).data('content-id'); var contentId = H5P.jQuery(this).data('content-id');
this.contentWindow.H5P = this.contentWindow.H5P || {};
this.contentWindow.H5P.externalEmbed = false;
this.contentDocument.open(); this.contentDocument.open();
this.contentDocument.write('<!doctype html><html class="h5p-iframe"><head>' + H5P.getHeadTags(contentId) + '</head><body><div class="h5p-content" data-content-id="' + contentId + '"/></body></html>'); this.contentDocument.write('<!doctype html><html class="h5p-iframe"><head>' + H5P.getHeadTags(contentId) + '</head><body><div class="h5p-content" data-content-id="' + contentId + '"/></body></html>');
this.contentDocument.close(); this.contentDocument.close();
this.contentWindow.H5P = {
externalEmbed: false
};
}); });
}; };