aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Menu.js
diff options
context:
space:
mode:
authorLibravatar Yoga Setiawan <ariokidev@gmail.com>2021-02-21 17:20:16 +0700
committerLibravatar GitHub <noreply@github.com>2021-02-21 11:20:16 +0100
commit852349d11633be52a60fbd557024bd2a89307fab (patch)
treed117145a40e4aee87438d74061a097b4812d74d4 /src/lib/Menu.js
parentNew Crowdin updates (#1186) (diff)
downloadferdium-app-852349d11633be52a60fbd557024bd2a89307fab.tar.gz
ferdium-app-852349d11633be52a60fbd557024bd2a89307fab.tar.zst
ferdium-app-852349d11633be52a60fbd557024bd2a89307fab.zip
Fixes "Service Developer Tools not available" #147 (#1213)
Diffstat (limited to 'src/lib/Menu.js')
-rw-r--r--src/lib/Menu.js6
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 }