Open goosewobbler opened 12 years ago
Is PM intercepting the postmessages sent by other means? Or are you actually invoking PM without a message type? How would you like it to be handled?
PM is receiving messages sent by other means, so I am using it to send a message to my Vimeo embed frame but the response is sent without use of the plugin so is missing the type attribute. I don't mind the warning but I don't think the message should be discarded if there is no type.
Not quite sure how PM should handle messages that are not a request/response of PM because
So if I understand you correctly, maybe you can use the native postMessage bindings to handle native postMessages from your embedded iframe.
Ok, so:
I have used native postMessage to handle this case, but I just thought that the PM handling of the case could be improved for increasing the scope of usage of the plugin (which is great, by the way).
If the message has no type then pm exits with a warning; could there be a better way to handle these messages?
It's not a problem for my own code, but this makes communicating with certain iframes (e.g. Vimeo universal embed) impossible using the plugin.