docs: Update online-offline-events.md to reflect nodeIntegration required (#21707)
* Update online-offline-events.md NodeIntegration is required for online/offline and the default changed, so the example should reflect the need for that config * chore: fix lint warning Co-authored-by: Cheng Zhao <zcbenz@github.com>
This commit is contained in:
parent
2e7f9bffeb
commit
2f394d46c7
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ const { app, BrowserWindow, ipcMain } = require('electron')
|
|||
let onlineStatusWindow
|
||||
|
||||
app.on('ready', () => {
|
||||
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false })
|
||||
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false, webPreferences: { nodeIntegration: true } })
|
||||
onlineStatusWindow.loadURL(`file://${__dirname}/online-status.html`)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue