diff options
author | 2021-02-21 17:20:16 +0700 | |
---|---|---|
committer | 2021-02-21 11:20:16 +0100 | |
commit | 852349d11633be52a60fbd557024bd2a89307fab (patch) | |
tree | d117145a40e4aee87438d74061a097b4812d74d4 /src/lib | |
parent | New Crowdin updates (#1186) (diff) | |
download | ferdium-app-852349d11633be52a60fbd557024bd2a89307fab.tar.gz ferdium-app-852349d11633be52a60fbd557024bd2a89307fab.tar.zst ferdium-app-852349d11633be52a60fbd557024bd2a89307fab.zip |
Diffstat (limited to 'src/lib')
-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 | } |