aboutsummaryrefslogtreecommitdiff
path: root/instance-manager.js
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-02-17 18:03:34 +0000
committerJames Barnett <noreply@jamesbarnett.xyz>2018-02-17 18:03:34 +0000
commit2327e4e536e3be29ffd7af54ebba6ae24265c692 (patch)
tree1441aaa24076633c08fa05da4f17f202e6301af7 /instance-manager.js
parent6e21916395fac6861783c2b930b47242ac0f4c09 (diff)
downloadsql-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.js29
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