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