aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-02-17 18:29:47 +0000
committerJames Barnett <noreply@jamesbarnett.xyz>2018-02-17 18:29:47 +0000
commit0c0fdc4e61d07d8883c382a4dd9d1afaa1874c33 (patch)
tree9efd7daa43887317ca0f696806bd7c5427242752 /main.js
parent2327e4e536e3be29ffd7af54ebba6ae24265c692 (diff)
downloadsql-plus-plus-0c0fdc4e61d07d8883c382a4dd9d1afaa1874c33.tar.xz
sql-plus-plus-0c0fdc4e61d07d8883c382a4dd9d1afaa1874c33.zip
Add instance IDs to allow IPC message routing
Diffstat (limited to 'main.js')
-rw-r--r--main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.js b/main.js
index 6c19d99..6cb76c8 100644
--- a/main.js
+++ b/main.js
@@ -59,6 +59,8 @@ app.on("activate", () => {
const { webContents } = require('electron');
+// TODO - only send messages to instance manager which will route request to correct webView, rather than
+// sending to all webViews
ipcMain.on("queryExecutor.runQueryComplete", (event, payload) => {
webContents.getAllWebContents().forEach((w) => {
w.send("queryExecutor.runQueryComplete", payload);