Notify electron that server is running
This commit is contained in:
1 parent
cc350aae23
commit
6680d4495c
2 files changed
+10
-4
No files matched your search
+6
-4
@@ -27,10 +27,12 @@ function run() {
|
||||
}
|
||||
|
||||
const { fork } = require('child_process')
|
||||
fork(path.join(__dirname, '/PlatformRoot.js'), ["noBrowser"])
|
||||
|
||||
server_ready = true
|
||||
if (app_ready) open()
|
||||
const platform = fork(path.join(__dirname, '/PlatformRoot.js'), ["noBrowser"], {stdio: ['pipe', 'pipe', 'pipe', 'ipc']})
|
||||
platform.on('message', message => {
|
||||
if(message == "Running") {
|
||||
open()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function open () {
|
||||
|
||||
Reference in new issue
Block a user