dev_env environment var check
This commit is contained in:
parent
d42c39d117
commit
24a49663d2
@ -26,11 +26,7 @@ function createWin() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
win.loadFile('pages/index.html');
|
win.loadFile('pages/index.html');
|
||||||
if(process.platform !== 'darwin') {
|
|
||||||
if(!process.env['DEV_ENV']) {
|
|
||||||
win.removeMenu()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
win.on('closed', () => {
|
win.on('closed', () => {
|
||||||
win = null
|
win = null
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user