summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/components/settings/pages/developer/index.tsx22
1 files changed, 13 insertions, 9 deletions
diff --git a/frontend/src/components/settings/pages/developer/index.tsx b/frontend/src/components/settings/pages/developer/index.tsx
index 812ff052..200f13ab 100644
--- a/frontend/src/components/settings/pages/developer/index.tsx
+++ b/frontend/src/components/settings/pages/developer/index.tsx
@@ -81,15 +81,19 @@ export default function DeveloperSettings() {
description={<span style={{ whiteSpace: 'pre-line' }}>{t('SettingsDeveloperIndex.cef_console.desc')}</span>}
icon={<FaTerminal style={{ display: 'block' }} />}
>
- <DialogButton onClick={async () => {
- let res = await window.DeckyPluginLoader.callServerMethod('get_tab_id', { "name": "SharedJSContext" });
- if (res.success) {
- Navigation.NavigateToExternalWeb("localhost:8080/devtools/inspector.html?ws=localhost:8080/devtools/page/"+res.result);
- } else {
- console.error('Unable to find ID for SharedJSContext tab ', res.result);
- Navigation.NavigateToExternalWeb("localhost:8080");
- }
- }}>
+ <DialogButton
+ onClick={async () => {
+ let res = await window.DeckyPluginLoader.callServerMethod('get_tab_id', { name: 'SharedJSContext' });
+ if (res.success) {
+ Navigation.NavigateToExternalWeb(
+ 'localhost:8080/devtools/inspector.html?ws=localhost:8080/devtools/page/' + res.result,
+ );
+ } else {
+ console.error('Unable to find ID for SharedJSContext tab ', res.result);
+ Navigation.NavigateToExternalWeb('localhost:8080');
+ }
+ }}
+ >
{t('SettingsDeveloperIndex.cef_console.button')}
</DialogButton>
</Field>