Skip to content

Commit

Permalink
fix: web-client close webview (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoszaf41 authored Apr 26, 2022
1 parent 6da6b3e commit f4e152e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/demo/demoForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function Demo() {
};

const postMessageToParent = () => {
window.top.postMessage('closeModal', '*');
window.parent?.postMessage('closeModal', '*');
};

const handleSubmitData = () => {
Expand Down

1 comment on commit f4e152e

@vercel
Copy link

@vercel vercel bot commented on f4e152e Apr 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.