Skip to content

Commit e4037b9

Browse files
author
Murage
committed
feat: add default fallback metadata options for interactive book type
1 parent 6180481 commit e4037b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/h5p-standalone.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,13 @@ export class H5PStandalone {
310310
H5PIntegration.contents = {};
311311
}
312312

313+
if(!options?.metadata){
314+
options.metadata = {
315+
title: options.title ? options.title : '',
316+
license: 'U'
317+
}
318+
}
319+
313320
H5PIntegration.contents[`cid-${contentId}`] = {
314321
library: mainLibraryName,
315322
title: options.title ? options.title : '',

0 commit comments

Comments
 (0)