Skip to content

Commit 0321d1a

Browse files
committed
comment F12
1 parent 7a2e214 commit 0321d1a

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/main/index.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)