Closed rosano closed 4 years ago
I changed this for myself but thought maybe it could be useful generally. It allows you to listen for postMessage in the same way as alert or confirm - something like
postMessage
alert
confirm
Browser.extend(function(browser) { browser.on('message', function(data) { console.log('postMessage fired', data); }); });
I changed this for myself but thought maybe it could be useful generally. It allows you to listen for
postMessage
in the same way asalert
orconfirm
- something like