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

non-capturama requests notify iframe parent via postMessage; prettify #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mnutt
Copy link
Member

@mnutt mnutt commented Jun 29, 2018

This supports a subsequent change in the MDK Live Preview to notify on events such as failed crops. We do this by having cropduster call window.postMessage() in addition to whatever other capturama API it uses.

Additionally, renames the msg variables to message for clarity and prettifies.

What this will eventually get us:

image 2

@@ -199,29 +223,34 @@ const CD = {

CD.pause(options.maxSuspension || 0, msg);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not rename this msg as well? (declared on line 216 above, but github won't let me put my comment up there)

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, done!

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

Successfully merging this pull request may close these issues.

2 participants