Skip to content

Commit

Permalink
fix initial path for h5p editor
Browse files Browse the repository at this point in the history
  • Loading branch information
uidp committed Mar 19, 2024
1 parent 533d792 commit 814b922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/scripts/topicEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ class TopicH5P extends TopicBlock {
const { parentType, parentId } = this.props;

const editorPopup = window.open(
`/h5p/editor/${id ?? ''}?parentType=${parentType}&parentId=${parentId}&inline=1`,
`/h5p/editor/${id ?? 'new'}?parentType=${parentType}&parentId=${parentId}&inline=1`,
'h5p-editor',
`width=${w}, height=${h}, left=${x}, top=${y},
fullscreen=yes, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes`,
Expand Down

0 comments on commit 814b922

Please sign in to comment.