File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import * as path from 'path' ;
2- import { app , Menu , MenuItemConstructorOptions } from 'electron' ;
2+ import { app , Menu , MenuItemConstructorOptions , shell } from 'electron' ;
33import ElectronStore from 'electron-store' ;
44
55const store = new ElectronStore ( ) ;
@@ -55,15 +55,15 @@ export const getMenu = (
5555 submenu : [
5656 {
5757 label : 'Open Documentation' ,
58- click ( ) { require ( 'electron' ) . shell . openExternal ( 'https://httptoolkit.com/docs' ) }
58+ click ( ) { shell . openExternal ( 'https://httptoolkit.com/docs' ) }
5959 } ,
6060 {
6161 label : 'Share Your Feedback' ,
62- click ( ) { require ( 'electron' ) . shell . openExternal ( 'https://github.com/httptoolkit/httptoolkit/issues/new/choose' ) }
62+ click ( ) { shell . openExternal ( 'https://github.com/httptoolkit/httptoolkit/issues/new/choose' ) }
6363 } ,
6464 {
6565 label : 'View HTTP Toolkit Logs' ,
66- click ( ) { require ( 'electron' ) . shell . showItemInFolder ( path . join ( app . getPath ( 'logs' ) , 'last-run.log' ) ) }
66+ click ( ) { shell . showItemInFolder ( path . join ( app . getPath ( 'logs' ) , 'last-run.log' ) ) }
6767 }
6868 ]
6969 }
You can’t perform that action at this time.
0 commit comments