mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
Attempt to appease the linter
I think the first navigation being on one line looks nicer, but it's over the 120 character limit :(
This commit is contained in:
@@ -81,15 +81,19 @@ export default function DeveloperSettings() {
|
|||||||
description={<span style={{ whiteSpace: 'pre-line' }}>{t('SettingsDeveloperIndex.cef_console.desc')}</span>}
|
description={<span style={{ whiteSpace: 'pre-line' }}>{t('SettingsDeveloperIndex.cef_console.desc')}</span>}
|
||||||
icon={<FaTerminal style={{ display: 'block' }} />}
|
icon={<FaTerminal style={{ display: 'block' }} />}
|
||||||
>
|
>
|
||||||
<DialogButton onClick={async () => {
|
<DialogButton
|
||||||
let res = await window.DeckyPluginLoader.callServerMethod('get_tab_id', { "name": "SharedJSContext" });
|
onClick={async () => {
|
||||||
if (res.success) {
|
let res = await window.DeckyPluginLoader.callServerMethod('get_tab_id', { name: 'SharedJSContext' });
|
||||||
Navigation.NavigateToExternalWeb("localhost:8080/devtools/inspector.html?ws=localhost:8080/devtools/page/"+res.result);
|
if (res.success) {
|
||||||
} else {
|
Navigation.NavigateToExternalWeb(
|
||||||
console.error('Unable to find ID for SharedJSContext tab ', res.result);
|
'localhost:8080/devtools/inspector.html?ws=localhost:8080/devtools/page/' + res.result,
|
||||||
Navigation.NavigateToExternalWeb("localhost:8080");
|
);
|
||||||
}
|
} else {
|
||||||
}}>
|
console.error('Unable to find ID for SharedJSContext tab ', res.result);
|
||||||
|
Navigation.NavigateToExternalWeb('localhost:8080');
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
{t('SettingsDeveloperIndex.cef_console.button')}
|
{t('SettingsDeveloperIndex.cef_console.button')}
|
||||||
</DialogButton>
|
</DialogButton>
|
||||||
</Field>
|
</Field>
|
||||||
|
|||||||
Reference in New Issue
Block a user