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', () => {
117117 icon : `${ __dirname } /../../vector/img/logo.png` ,
118118 width : 1024 , height : 768 ,
119119 } ) ;
120- // A useful one to uncomment for debugging
121- //mainWindow.webContents.openDevTools();
122120 mainWindow . loadURL ( `file://${ __dirname } /../../vector/index.html` ) ;
123121 electron . Menu . setApplicationMenu ( VectorMenu ) ;
124122
Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ const template = [
7070 } ,
7171 {
7272 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+ }
7380 }
7481 ]
7582 } ,
You can’t perform that action at this time.
0 commit comments