mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Keep nodeIntegration requirement (#120)
This commit is contained in:
parent
4bb0726106
commit
f29c5b00ae
|
@ -23,6 +23,7 @@ Electron-tabs uses webviews, so you first need to use the following `webPreferen
|
||||||
```js
|
```js
|
||||||
const mainWindow = new electron.BrowserWindow({
|
const mainWindow = new electron.BrowserWindow({
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
nodeIntegration: true,
|
||||||
webviewTag: true
|
webviewTag: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,6 +4,7 @@ const app = electron.app;
|
||||||
app.on('ready', function () {
|
app.on('ready', function () {
|
||||||
const mainWindow = new electron.BrowserWindow({
|
const mainWindow = new electron.BrowserWindow({
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
nodeIntegration: true,
|
||||||
webviewTag: true
|
webviewTag: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue