mirror of
https://github.com/electron/electron.git
synced 2026-01-30 01:38:49 -05:00
10 lines
298 B
JavaScript
10 lines
298 B
JavaScript
const { ipcRenderer } = require('electron');
|
|
|
|
setImmediate(function () {
|
|
if (window.location.toString() === 'bar://page/') {
|
|
const windowOpenerIsNull = window.opener == null;
|
|
ipcRenderer.send('answer', process.argv, typeof global.process, windowOpenerIsNull);
|
|
window.close();
|
|
}
|
|
});
|