mirror of
https://github.com/electron/electron.git
synced 2026-01-29 09:18:18 -05:00
9 lines
217 B
JavaScript
9 lines
217 B
JavaScript
const {ipcRenderer} = require('electron')
|
|
|
|
setImmediate(function () {
|
|
if (window.location.toString() === 'bar://page') {
|
|
ipcRenderer.send('answer', process.argv, typeof global.process)
|
|
window.close()
|
|
}
|
|
})
|