Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When reload the iframe 'handshake' and 'call' message conflict #242

Open
Nicooyeah opened this issue Jul 18, 2023 · 0 comments
Open

When reload the iframe 'handshake' and 'call' message conflict #242

Nicooyeah opened this issue Jul 18, 2023 · 0 comments

Comments

@Nicooyeah
Copy link

What Is the issue?

After new a postmate, I re-set the 'src' for iframe and call 'call' to send message to child.
But the event listener monitor the 'load' event, so it trigger the 'loaded' and try to send handshake. By the time, in child page, due to the reload, it re-call the new Postmate.Model, and run sendHandshakeReply, but the data.postmate it received is not 'handshake' but 'call', so the hand shake reply fail.

Provide issue context below using code examples, images, or links

image

Read about references issues here. Provide paragraph text responses to each header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant