Open iamchathu opened 4 years ago
@iamchathu you can work around any issue in newer versions of Electron by passing the appropriate webPreferences
into the BrowserWindow
constructor. For example:
let newWindow = new BrowserWindow({
x, y, show: false,
"webPreferences": {
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true
}
})
Obviously, this will stop working in Electron 12.
Seems electron is going to remove
remote
from Electron.