File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,18 +96,18 @@ app.whenReady().then(() => {
9696 return false ;
9797 } ) ;
9898
99- if ( process . env . NODE_ENV === "development" ) {
100- globalShortcut . register ( "F12" , ( ) => {
101- const window = windowManager . getWindow ( ) ;
102- if ( ! window ) return ;
103-
104- if ( window . webContents . isDevToolsOpened ( ) ) {
105- window . webContents . closeDevTools ( ) ;
106- } else {
107- window . webContents . openDevTools ( ) ;
108- }
109- } ) ;
110- }
99+ // if (process.env.NODE_ENV === "development") {
100+ // globalShortcut.register("F12", () => {
101+ // const window = windowManager.getWindow();
102+ // if (!window) return;
103+
104+ // if (window.webContents.isDevToolsOpened()) {
105+ // window.webContents.closeDevTools();
106+ // } else {
107+ // window.webContents.openDevTools();
108+ // }
109+ // });
110+ // }
111111
112112 setupIPC ( ) ;
113113
You can’t perform that action at this time.
0 commit comments