Skip to content

Commit

Permalink
Merge pull request #5015 from OpenShot/fix-user-guide-javascript
Browse files Browse the repository at this point in the history
Fixing error with frameElement missing
  • Loading branch information
jonoomph authored Dec 1, 2022
2 parents 2b389ae + d4b6fe3 commit c6a6ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
function trySendMessage(){
messageAttempts++;
if ('parentIFrame' in window) {
const href = frameElement.contentWindow.location.href;
const href = window.location.href;
const type = "document-loaded";
window.parentIFrame.sendMessage({href, type});
} else {
Expand Down

0 comments on commit c6a6ba4

Please sign in to comment.