diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-02-17 18:03:34 +0000 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-02-17 18:03:34 +0000 |
| commit | 2327e4e536e3be29ffd7af54ebba6ae24265c692 (patch) | |
| tree | 1441aaa24076633c08fa05da4f17f202e6301af7 /instance-manager.js | |
| parent | 6e21916395fac6861783c2b930b47242ac0f4c09 (diff) | |
| download | sql-plus-plus-2327e4e536e3be29ffd7af54ebba6ae24265c692.tar.xz sql-plus-plus-2327e4e536e3be29ffd7af54ebba6ae24265c692.zip | |
WIP - Add basic unstyled static tabs. IPC needs work
Diffstat (limited to 'instance-manager.js')
| -rw-r--r-- | instance-manager.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/instance-manager.js b/instance-manager.js new file mode 100644 index 0000000..e8b803e --- /dev/null +++ b/instance-manager.js @@ -0,0 +1,29 @@ +"use strict"; + +const { ipcRenderer } = require('electron'); +const TabGroup = require("electron-tabs"); + +let tabGroup = new TabGroup(); +let tab = tabGroup.addTab({ + title: "Electron", + src: 'file://' + __dirname + '/editor-instance.html', + visible: true, + active: true, + webviewAttributes: {"nodeintegration":true}, + // ready: tab => { + // let webview = tab.webview; + // if (!!webview) { + // webview.addEventListener('dom-ready', () => { + // webview.openDevTools(); + // }) + // } + // } +}); + +let tab2 = tabGroup.addTab({ + title: "Electron", + src: 'file://' + __dirname + '/editor-instance.html', + visible: true, + active: true, + webviewAttributes: { "nodeintegration": true }, +});
\ No newline at end of file |