mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 23:11:56 +00:00
Simplify the typing of the plugin URL for users (#769)
* Simplify the typing of the plugin URL for the user. Make the http/https prefix optional. * Fixed the formatting using prettier --write
This commit is contained in:
@@ -72,7 +72,16 @@ export default function DeveloperSettings() {
|
|||||||
}
|
}
|
||||||
icon={<FaLink style={{ display: 'block' }} />}
|
icon={<FaLink style={{ display: 'block' }} />}
|
||||||
>
|
>
|
||||||
<DialogButton disabled={pluginURL.length == 0} onClick={() => installFromURL(pluginURL)}>
|
<DialogButton
|
||||||
|
disabled={pluginURL.length == 0}
|
||||||
|
onClick={() => {
|
||||||
|
if (/^https?:\/\//.test(pluginURL)) {
|
||||||
|
installFromURL(pluginURL);
|
||||||
|
} else {
|
||||||
|
installFromURL('https://' + pluginURL);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
{t('SettingsDeveloperIndex.third_party_plugins.button_install')}
|
{t('SettingsDeveloperIndex.third_party_plugins.button_install')}
|
||||||
</DialogButton>
|
</DialogButton>
|
||||||
</Field>
|
</Field>
|
||||||
|
|||||||
Reference in New Issue
Block a user