electron/spec/fixtures/crash-cases/webview-contents-error-on-c.../index.js

15 lines
273 B
JavaScript

const { app, BrowserWindow } = require('electron');
app.whenReady().then(() => {
const mainWindow = new BrowserWindow({
show: false
});
mainWindow.loadFile('about:blank');
app.on('web-contents-created', () => {
throw new Error();
});
app.quit();
});