diff --git a/js/h5p.js b/js/h5p.js index 5de66e2..60cfdd4 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -134,6 +134,7 @@ H5P.init = function (target) { }); dialog.open(); } + // If previousState is false we don't have a previous state }); // Create new instance. @@ -1849,7 +1850,7 @@ H5P.createTitle = function (rawTitle, maxLength) { H5PIntegration.contents = H5PIntegration.contents || {}; var content = H5PIntegration.contents['cid-' + contentId] || {}; var preloadedData = content.contentUserData; - if (preloadedData && preloadedData[subContentId] && preloadedData[subContentId][dataId]) { + if (preloadedData && preloadedData[subContentId] && preloadedData[subContentId][dataId] !== undefined) { if (preloadedData[subContentId][dataId] === 'RESET') { done(undefined, null); return;