mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
intercept entry point
This commit is contained in:
3
main.js
3
main.js
@@ -87,8 +87,9 @@ app.on('ready', function () {
|
||||
mainWindow.hide()
|
||||
})
|
||||
mainWindow.webContents.on('did-finish-load', function () {
|
||||
require('module')._load(path.resolve(__dirname, 'finder.js'), module, true)
|
||||
finderProcess = ChildProcess
|
||||
.execFile(process.execPath, [path.resolve(__dirname, 'finder.js')], {
|
||||
.execFile(process.execPath, [path.resolve(__dirname, 'finder.js'), '--finder'], {
|
||||
stdio: 'pipe'
|
||||
})
|
||||
finderProcess.stdout.on('data', format)
|
||||
|
||||
Reference in New Issue
Block a user