File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -117,8 +117,6 @@ electron.app.on('ready', () => {
117
117
icon : `${ __dirname } /../../vector/img/logo.png` ,
118
118
width : 1024 , height : 768 ,
119
119
} ) ;
120
- // A useful one to uncomment for debugging
121
- //mainWindow.webContents.openDevTools();
122
120
mainWindow . loadURL ( `file://${ __dirname } /../../vector/index.html` ) ;
123
121
electron . Menu . setApplicationMenu ( VectorMenu ) ;
124
122
Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ const template = [
70
70
} ,
71
71
{
72
72
role : 'togglefullscreen'
73
+ } ,
74
+ {
75
+ label : 'Toggle Developer Tools' ,
76
+ accelerator : process . platform == 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I' ,
77
+ click : function ( item , focusedWindow ) {
78
+ if ( focusedWindow ) focusedWindow . toggleDevTools ( ) ;
79
+ }
73
80
}
74
81
]
75
82
} ,
You can’t perform that action at this time.
0 commit comments