chore: make WebContentsView take webPreferences as parameter (#22997)
* chore: add WebContentsView.webContents helper * chore: no need to handle webContents option * chore: Create WebContentsView in C++ * chore: make WebContentsView accept web_preferences * fix: nativeWindowOpen still passes WebContents to BrowserWindow * chore: no more need of WebContentsViewRelay * test: WebContentsView now takes options * fix: avoid creating 2 constructors
This commit is contained in:
parent
de893360f7
commit
ca947307db
7 changed files with 108 additions and 92 deletions
|
@ -1,7 +1,6 @@
|
|||
const { WebContentsView, app, webContents } = require('electron');
|
||||
const { WebContentsView, app } = require('electron');
|
||||
app.whenReady().then(function () {
|
||||
const web = webContents.create({});
|
||||
new WebContentsView(web) // eslint-disable-line
|
||||
new WebContentsView({}) // eslint-disable-line
|
||||
|
||||
app.quit();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue