electron/spec-main/fixtures/crash-cases/native-window-open-exit/preload.js

6 lines
196 B
JavaScript

const { ipcRenderer } = require('electron');
window.addEventListener('DOMContentLoaded', () => {
window.open('127.0.0.1:7001', '_blank');
setTimeout(() => ipcRenderer.send('test-done'));
});