From 3991875439a0ca049c5361968fbf644d769a223a Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Wed, 27 Jan 2016 12:42:55 +0100 Subject: [PATCH] Avoid navigating inside iframe HFJ-1479 --- js/h5p.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index fe45aaf..b51842f 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -375,7 +375,8 @@ H5P.getHeadTags = function (contentId) { return tags; }; - return createStyleTags(H5PIntegration.core.styles) + + return '' + + createStyleTags(H5PIntegration.core.styles) + createStyleTags(H5PIntegration.contents['cid-' + contentId].styles) + createScriptTags(H5PIntegration.core.scripts) + createScriptTags(H5PIntegration.contents['cid-' + contentId].scripts) +