Skip to content

Commit

Permalink
Post message as object instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
evmiguel committed Dec 21, 2022
1 parent ed65d66 commit e4d7c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handlebars/public/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ const announceCopied = link => {
};

window.parent.postMessage(
`{ height: ${document.body.scrollHeight}, iframe: ${iframeClass} }`,
{ height: document.body.scrollHeight, iframe: iframeClass },
'*'
);

0 comments on commit e4d7c8c

Please sign in to comment.