Exposing process.env status (#12166)

This commit is contained in:
Hari Juturu 2018-03-13 20:01:40 -07:00 committed by Samuel Attard
parent 134872e9c1
commit 704af29543
4 changed files with 24 additions and 0 deletions

View file

@ -7,6 +7,9 @@
if (location.protocol === 'file:') {
window.test = 'preload'
window.process = process
if (process.env.sandboxmain) {
window.test = process.env.sandboxmain
}
} else if (location.href !== 'about:blank') {
addEventListener('DOMContentLoaded', () => {
ipcRenderer.send('child-loaded', window.opener == null, document.body.innerHTML)