mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
native modules - pass version from electron to API
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = {
|
||||
raw: true,
|
||||
},
|
||||
test(req, res) {
|
||||
const subprocess = fork(process.argv[1], ['connectProcess']);
|
||||
const subprocess = fork(process.argv[1], ['connectProcess', ...process.argv.slice(3)]);
|
||||
subprocess.on('message', (resp) => {
|
||||
// @ts-ignore
|
||||
const { msgtype } = resp;
|
||||
|
||||
Reference in New Issue
Block a user