gui: disable node in default client
This commit is contained in:
parent
3bee2b0171
commit
7b2c543d59
2 changed files with 5 additions and 2 deletions
|
|
@ -17,7 +17,10 @@ module.exports = function(options={}) {
|
|||
title: options.title || settings.read('appName'),
|
||||
icon: path.resolve(__dirname + '/logo.png'),
|
||||
backgroundColor: options.color || bgColor,
|
||||
type:options.type
|
||||
type:options.type,
|
||||
webPreferences: {
|
||||
nodeIntegration: !!options.node
|
||||
}
|
||||
})
|
||||
|
||||
window.loadURL(options.address)
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ if (settings.cli) {
|
|||
launcher
|
||||
|
||||
app.on('ready',function(){
|
||||
launcher = require('./electron-window')({address:address, shortcuts:false, width:680, height:626, color:'#283143'})
|
||||
launcher = require('./electron-window')({address:address, shortcuts:false, width:680, height:626, node:true, color:'#283143'})
|
||||
})
|
||||
|
||||
process.stdout.write = (function(write) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue