import path from 'path'; let wnd = null; app.on('ready', () => { // Load wnd = new BrowserWindow({width: 500, height: 500}); wnd.loadUrl('file://' + path.join(__dirname, 'index.html')); // Show the window, then once it opens, pop the developer tools wnd.show(); setTimeout(() => wnd.openDevTools(), 5*1000); });
page once it loads // window.electronApi = { app: new AppIntegration(), clipboard: new ClipboardIntegration(), dock: new DockIntegration(), notice: new NotificationIntegration(), teams: new TeamIntegration(), downloads: new DownloadIntegration(), window: new WindowApi(browserWindowId, process.guestInstanceId), contextMenu: contextMenu, spellCheckingHelper: spellCheckingHelper, };
of browser + renderer process • your globals are not really global • Atom approach vs Slack approach • Describe Atom (ship all soBware) • Describe Slack (webview with super powers) • What even is a WebView tag