native modules - pass version from electron to API

This commit is contained in:
Jan Prochazka
2021-01-16 20:32:07 +01:00
parent c5e75dfe3e
commit d1aef572bd
11 changed files with 350 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ class DatastoreProxy {
async ensureSubprocess() {
if (!this.subprocess) {
this.subprocess = fork(process.argv[1], ['jslDatastoreProcess']);
this.subprocess = fork(process.argv[1], ['jslDatastoreProcess', ...process.argv.slice(3)]);
// @ts-ignore
this.subprocess.on('message', ({ msgtype, ...message }) => {