Skip to content

Commit f97ca23

Browse files
committed
Restrict developer console to dev only
1 parent e6dc79e commit f97ca23

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

main.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ const AppWindows = {
4141
this.mainWindow.reload();
4242
});
4343

44-
localShortcut.register(windowToRegister, 'CommandOrControl+Shift+I', () => {
45-
this.mainWindow.toggleDevTools();
46-
});
44+
// Development only shortcut
45+
if (process.env.NODE_ENV === 'development') {
46+
localShortcut.register(windowToRegister, 'CommandOrControl+Shift+I', () => {
47+
this.mainWindow.toggleDevTools();
48+
});
49+
}
4750
},
4851

4952
bindEventListener: function bindEventListener() {

0 commit comments

Comments
 (0)