electron-in-action/firesale

Remote is depricated

Opened this issue · 1 comments

Seems electron is going to remove remote from Electron.

@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.