electron/spec-main/fixtures/api/leak-exit-webcontentsview.js
2020-03-20 13:28:31 -07:00

7 lines
210 B
JavaScript

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