diff options
| author | Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> | 2023-06-02 00:26:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-02 00:26:08 +0100 |
| commit | 8049417e036a8d855d0455f32d71caf2ffc39c11 (patch) | |
| tree | 722271851af0516c5c3d125b3eae9c4c769bde5a | |
| parent | f4c0a8b5aa3353ad1a9909ddc55b06802169d6d0 (diff) | |
| download | decky-loader-8049417e036a8d855d0455f32d71caf2ffc39c11.tar.gz decky-loader-8049417e036a8d855d0455f32d71caf2ffc39c11.zip | |
Attempt to appease the linter
I think the first navigation being on one line looks nicer, but it's over the 120 character limit :(
| -rw-r--r-- | frontend/src/components/settings/pages/developer/index.tsx | 22 |
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> |
