electron/spec-main/fixtures/api/leak-exit-webcontentsview.js
Cheng Zhao ca947307db
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
2020-04-09 16:01:16 +09:00

6 lines
158 B
JavaScript

const { WebContentsView, app } = require('electron');
app.whenReady().then(function () {
new WebContentsView({}) // eslint-disable-line
app.quit();
});