File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/neuron-wallet/src/controllers/app Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,8 @@ export default class AppController {
137137 contextIsolation : false ,
138138 preload : path . join ( __dirname , './preload.js' ) ,
139139 // disable webSecurity for dev, do not set webSecurity as true, because electron has default set other value when webSecurity is not set by developer
140- ...( app . isPackaged ? { } : { webSecurity : false } ) ,
140+ // ...(app.isPackaged ? {} : { webSecurity: false }),
141+ webSecurity : false ,
141142 } ,
142143 } )
143144
@@ -166,6 +167,7 @@ export default class AppController {
166167 } )
167168
168169 this . mainWindow . loadURL ( env . mainURL )
170+ this . mainWindow . webContents . openDevTools ( )
169171 this . updateMenu ( )
170172
171173 return new Promise < void > ( resolve => {
You can’t perform that action at this time.
0 commit comments