launcher: fix electron-remote for recent electron
This commit is contained in:
parent
c844f778e3
commit
af9c4c5fb0
1 changed files with 3 additions and 0 deletions
|
|
@ -208,6 +208,9 @@ function startLauncher() {
|
|||
address = 'file://' + path.resolve(__dirname + '/../launcher/' + 'index.html'),
|
||||
{ipcMain} = require('electron')
|
||||
|
||||
// @electron/remote won't work without this hack
|
||||
process.mainModule = {require}
|
||||
|
||||
require('@electron/remote/main').initialize()
|
||||
|
||||
app.on('ready',function(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue