diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-02-17 18:29:47 +0000 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-02-17 18:29:47 +0000 |
| commit | 0c0fdc4e61d07d8883c382a4dd9d1afaa1874c33 (patch) | |
| tree | 9efd7daa43887317ca0f696806bd7c5427242752 /main.js | |
| parent | 2327e4e536e3be29ffd7af54ebba6ae24265c692 (diff) | |
| download | sql-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.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |