diff --git a/js/h5p-embed.js b/js/h5p-embed.js index b94fd29..bab6cc7 100644 --- a/js/h5p-embed.js +++ b/js/h5p-embed.js @@ -113,7 +113,7 @@ var H5P = H5P || (function () { library: content.library, jsonContent: content.params, fullScreen: content.fullscreen, - export: content.export, + exportUrl: content.exportUrl, embedCode: content.embedCode }; }, diff --git a/js/h5p.js b/js/h5p.js index f0574b5..e0320dd 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -64,10 +64,10 @@ H5P.init = function () { }; var $actions = H5P.jQuery(''); - if (contentData.export !== '') { + if (contentData.exportUrl !== '') { // Display export button H5P.jQuery('
  • ' + H5P.t('download') + '
  • ').appendTo($actions).click(function () { - window.location.href = contentData.export; + window.location.href = contentData.exportUrl; }); } if (instance.getCopyrights !== undefined) {