Skip to content

Commit e8da383

Browse files
committed
feat(Menu): Add menu item to toggle (service) dev tools
1 parent 37d5923 commit e8da383

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/lib/Menu.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { remote, shell } from 'electron';
22
import { autorun, computed, observable, toJS } from 'mobx';
33

4-
import { isDevMode, isMac } from '../environment';
4+
import { isMac } from '../environment';
55

66
const { app, Menu } = remote;
77

@@ -101,17 +101,15 @@ export default class FranzMenu {
101101
_build() {
102102
const tpl = toJS(this.tpl);
103103

104-
if (isDevMode) {
105-
tpl[1].submenu.push({
106-
role: 'toggledevtools',
107-
}, {
108-
label: 'Toggle Service Developer Tools',
109-
accelerator: 'CmdOrCtrl+Shift+Alt+i',
110-
click: () => {
111-
this.actions.service.openDevToolsForActiveService();
112-
},
113-
});
114-
}
104+
tpl[1].submenu.push({
105+
role: 'toggledevtools',
106+
}, {
107+
label: 'Toggle Service Developer Tools',
108+
accelerator: 'CmdOrCtrl+Shift+Alt+i',
109+
click: () => {
110+
this.actions.service.openDevToolsForActiveService();
111+
},
112+
});
115113

116114
tpl[1].submenu.unshift({
117115
label: 'Reload Service',

0 commit comments

Comments
 (0)