This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* By default, the Electron (or underlying Chrome instance, to be more precise) will not allow | |
* javascript communication between parent window and an <iframe>. Which makes it hard to cover | |
* scenarios when you want to do something after an action has been performed inside the <iframe>. | |
* This example shows how to react on web reqest from within <iframe>. | |
* | |
* The 'onBeforeRequest' listener is documented here: | |
* http://electron.atom.io/docs/api/session/#webrequestonbeforerequestfilter-listener | |
*/ |