Avoid navigating inside iframe

HFJ-1479
pull/17/head moodle-0.2.0
Frode Petterson 2016-01-27 12:42:55 +01:00
parent 633186c0d5
commit 3991875439
1 changed files with 2 additions and 1 deletions

View File

@ -375,7 +375,8 @@ H5P.getHeadTags = function (contentId) {
return tags;
};
return createStyleTags(H5PIntegration.core.styles) +
return '<base target="_parent">' +
createStyleTags(H5PIntegration.core.styles) +
createStyleTags(H5PIntegration.contents['cid-' + contentId].styles) +
createScriptTags(H5PIntegration.core.scripts) +
createScriptTags(H5PIntegration.contents['cid-' + contentId].scripts) +