[SalesForce] Send data from Lightning component to visualforce page without window.postmessage

I am using window.postmessage() to send data from lightning component to visualforce page as given in below link.

https://developer.salesforce.com/blogs/developer-relations/2017/01/lightning-visualforce-communication.html

For some reason window.postmessage() in not working in Microsoft edge after spring'19 release.
Is there any other way to communicate between independent lightning component and visualforce page without window.postmessage()?

Any kind of help is appreciated.

Thank You