fix: process.exit crash in nativeWindowOpen (#30218)

This commit is contained in:
Shelley Vohr 2021-07-22 15:38:11 +02:00 committed by GitHub
parent eca1098b55
commit b24cfe17bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 1 deletions

View file

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