I am struggling with understanding how atom is build. Could somebody validate I got it right?
I understand that chrome is divided into browser and renderers which communicate via ipc. I am guessing that scripts in atom/src/browser are executed in browser and those in atom/src are executed in renderers. This is why
"require 'browser-window'" would fail in my test package.
I found code which works:
"BrowserWindow = require('remote').require 'browser-window'"
And I explain it as follow: the “remote” object gives me link from renderer into the main process, which is capable in its turn to create new browser window. Am I correct in my interpretation?
And what is “< webview >”? Is it an iframe? And this is why it does work in my package, because renderer is allowed to inject elements into its own document?