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, Electron (well, underlying Chrome browser) will reject loading external URLs | |
* to an <iframe>. To circumvent this limitation, we can manipulate response headers from any | |
* http request and feed them to the Electron window. | |
* | |
* The 'onHeadersReceived' listener is documented here: | |
* http://electron.atom.io/docs/api/session/#webrequestonheadersreceivedfilter-listener | |
*/ | |
app.on('ready', () => { |