mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-10 23:41:57 +00:00
port updater to ws, also small refactoring
This commit is contained in:
@@ -38,7 +38,7 @@ export async function setShowValveInternal(show: boolean) {
|
||||
}
|
||||
|
||||
export async function setShouldConnectToReactDevTools(enable: boolean) {
|
||||
window.DeckyPluginLoader.toaster.toast({
|
||||
DeckyPluginLoader.toaster.toast({
|
||||
title: enable ? (
|
||||
<TranslationHelper trans_class={TranslationClass.DEVELOPER} trans_text={'enabling'} />
|
||||
) : (
|
||||
@@ -48,7 +48,7 @@ export async function setShouldConnectToReactDevTools(enable: boolean) {
|
||||
icon: <FaReact />,
|
||||
});
|
||||
await sleep(5000);
|
||||
return enable ? window.DeckyBackend.call('utilities/enable_rdt') : window.DeckyBackend.call('utilities/disable_rdt');
|
||||
return enable ? DeckyBackend.call('utilities/enable_rdt') : DeckyBackend.call('utilities/disable_rdt');
|
||||
}
|
||||
|
||||
export async function startup() {
|
||||
|
||||
Reference in New Issue
Block a user