Skip to content

Commit c6a6ba4

Browse files
authored
Merge pull request #5015 from OpenShot/fix-user-guide-javascript
Fixing error with frameElement missing
2 parents 2b389ae + d4b6fe3 commit c6a6ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/_templates/layout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
function trySendMessage(){
1717
messageAttempts++;
1818
if ('parentIFrame' in window) {
19-
const href = frameElement.contentWindow.location.href;
19+
const href = window.location.href;
2020
const type = "document-loaded";
2121
window.parentIFrame.sendMessage({href, type});
2222
} else {

0 commit comments

Comments
 (0)