Skip to content

Commit

Permalink
fix(h5p-exporter): already internalized URLs are kept as they are
Browse files Browse the repository at this point in the history
  • Loading branch information
sr258 committed Jul 13, 2021
1 parent c7fab91 commit f9d7290
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/h5p-html-exporter/src/HtmlExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,10 @@ export default class HtmlExporter {
core: boolean,
usedFiles: LibrariesFilesList
) => async (asset) => {
// If a url already is internalized we simply return it
if (asset.url.startsWith('data:') && asset.url.includes('base64')) {
return asset.url;
}
const mimetype = mimetypes.lookup(path.extname(asset.relativePath));

if (library) {
Expand Down

0 comments on commit f9d7290

Please sign in to comment.