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

Listen for (or send) events on multiple domains #82

Closed rachelslurs closed 4 years ago

rachelslurs commented 5 years ago

I was wondering if there's support for supporting sending/listening for events with multiple domains. If not, are there plans to support this in the future?

Thank you!

bluepnume commented 5 years ago

Yup! You can pass an array of strings, or a regex as the domain.