2020-11-10 10:06:03 -07:00
|
|
|
const { ipcRenderer, webFrame } = require('electron');
|
2017-07-10 17:59:49 -06:00
|
|
|
|
|
|
|
setImmediate(function () {
|
2020-01-29 05:01:37 -07:00
|
|
|
if (window.location.toString() === 'bar://page/') {
|
2020-03-20 14:28:31 -06:00
|
|
|
const windowOpenerIsNull = window.opener == null;
|
2020-11-10 10:06:03 -07:00
|
|
|
ipcRenderer.send('answer', {
|
|
|
|
nodeIntegration: webFrame.getWebPreference('nodeIntegration'),
|
|
|
|
typeofProcess: typeof global.process,
|
|
|
|
windowOpenerIsNull
|
|
|
|
});
|
2020-03-20 14:28:31 -06:00
|
|
|
window.close();
|
2017-07-10 17:59:49 -06:00
|
|
|
}
|
2020-03-20 14:28:31 -06:00
|
|
|
});
|