Exposing process.env status (#12166)
This commit is contained in:
parent
134872e9c1
commit
704af29543
4 changed files with 24 additions and 0 deletions
3
spec/fixtures/module/preload-sandbox.js
vendored
3
spec/fixtures/module/preload-sandbox.js
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue