electron/spec-main/fixtures/api/leak-exit-webcontentsview.js

8 lines
201 B
JavaScript
Raw Normal View History

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