@@ -317,30 +317,36 @@ function buildAppMenu (options = {}) {
317
317
sendIPCToWindow ( window , 'inspectPage' )
318
318
}
319
319
} ,
320
- {
321
- type : 'separator'
322
- } ,
323
- ...( isDevelopmentMode ?
320
+ ...( isDevelopmentMode || isDebuggingEnabled ?
324
321
[
322
+ {
323
+ type : 'separator'
324
+ } ,
325
325
{
326
326
label : l ( 'appMenuReloadBrowser' ) ,
327
327
accelerator : ( isDevelopmentMode ? 'alt+CmdOrCtrl+R' : undefined ) ,
328
328
click : function ( item , focusedWindow ) {
329
- destroyAllViews ( )
330
- windows . getAll ( ) . forEach ( win => win . close ( ) )
331
- createWindow ( )
329
+ destroyAllViews ( )
330
+ windows . getAll ( ) . forEach ( win => win . close ( ) )
331
+ createWindow ( )
332
332
}
333
333
} ,
334
- ] : [ ] ) ,
335
- {
336
- label : l ( 'appMenuInspectBrowser' ) ,
337
- accelerator : ( function ( ) {
338
- if ( process . platform === 'darwin' ) { return 'Shift+Cmd+Alt+I' } else { return 'Ctrl+Shift+Alt+I' }
339
- } ) ( ) ,
340
- click : function ( item , focusedWindow ) {
341
- if ( focusedWindow ) focusedWindow . toggleDevTools ( )
342
- }
343
- }
334
+ {
335
+ label : l ( 'appMenuInspectBrowser' ) ,
336
+ accelerator : ( function ( ) {
337
+ if ( process . platform === 'darwin' ) { return 'Shift+Cmd+Alt+I' } else { return 'Ctrl+Shift+Alt+I' }
338
+ } ) ( ) ,
339
+ click : function ( item , focusedWindow ) {
340
+ if ( focusedWindow ) focusedWindow . toggleDevTools ( )
341
+ }
342
+ } ,
343
+ {
344
+ label : 'Inspect Places Service' ,
345
+ click : function ( item , focusedWindow ) {
346
+ placesWindow . webContents . openDevTools ( { mode : 'detach' } )
347
+ }
348
+ }
349
+ ] : [ ] )
344
350
]
345
351
} ,
346
352
...( process . platform === 'darwin' ? [
0 commit comments