diff --git a/js/h5p.js b/js/h5p.js
index 9a9554a..01f6d25 100644
--- a/js/h5p.js
+++ b/js/h5p.js
@@ -146,7 +146,6 @@ H5P.init = function (target) {
// Create action bar
var $actions = H5P.jQuery('
');
-
if (!(contentData.disable & H5P.DISABLE_DOWNLOAD)) {
// Add export button
H5P.jQuery('' + H5P.t('download') + '').appendTo($actions).click(function () {
@@ -176,7 +175,7 @@ H5P.init = function (target) {
}
// Insert action bar if it has any content
- if ($actions.children().length) {
+ if (!(contentData.disable & H5P.DISABLE_FRAME) && $actions.children().length) {
$actions.insertAfter($container);
}
else {