krakenjs / post-robot

Cross domain post-messaging on the client side using a simple listener/client pattern.
Apache License 2.0
741 stars 92 forks source link

feat: add check if listener exists #116

Open pawk3k opened 1 year ago

pawk3k commented 1 year ago

Hi everyone I just repeated the pr as it had some conflict in it for simplicity I've added this as a new one. In my use case, I need this function to check if the listener was defined in the host of the iframe and then call the native behavior of the host if the listener was not specified in other cases call the listener. This pr is just a copy of https://github.com/krakenjs/post-robot/pull/91 for bringing attention to this

pawk3k commented 1 year ago

It seems like some mismatched dependencies :D

dtjones404 commented 1 year ago

Looks like one of our eslint plugins is broken: https://github.com/amilajack/eslint-plugin-compat/pull/529. Working on a fix!