diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Menu.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index d0dc28da6..ebf80aee0 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -860,8 +860,6 @@ export default class FranzMenu { | |||
860 | accelerator: `${cmdKey}+Shift+Alt+I`, | 860 | accelerator: `${cmdKey}+Shift+Alt+I`, |
861 | click: () => { | 861 | click: () => { |
862 | this.actions.service.openDevToolsForActiveService(); | 862 | this.actions.service.openDevToolsForActiveService(); |
863 | const webview = document.querySelector('#todos-panel webview'); | ||
864 | if (webview) this.actions.todos.openDevTools(); | ||
865 | }, | 863 | }, |
866 | enabled: this.stores.user.isLoggedIn && this.stores.services.enabled.length > 0, | 864 | enabled: this.stores.user.isLoggedIn && this.stores.services.enabled.length > 0, |
867 | }); | 865 | }); |
@@ -871,8 +869,8 @@ export default class FranzMenu { | |||
871 | label: intl.formatMessage(menuItems.toggleTodosDevTools), | 869 | label: intl.formatMessage(menuItems.toggleTodosDevTools), |
872 | accelerator: `${cmdKey}+Shift+Alt+O`, | 870 | accelerator: `${cmdKey}+Shift+Alt+O`, |
873 | click: () => { | 871 | click: () => { |
874 | const webview = document.querySelector('webview[partition="persist:todos"]'); | 872 | const webview = document.querySelector('#todos-panel webview'); |
875 | if (webview) webview.openDevTools(); | 873 | if (webview) this.actions.todos.openDevTools(); |
876 | }, | 874 | }, |
877 | }); | 875 | }); |
878 | } | 876 | } |