mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 22:01:59 +00:00
chore: lint
This commit is contained in:
@@ -179,10 +179,13 @@ class PluginLoader extends Logger {
|
|||||||
|
|
||||||
private async loadPlugins() {
|
private async loadPlugins() {
|
||||||
let registration: any;
|
let registration: any;
|
||||||
const uiMode = await new Promise(r => registration = SteamClient.UI.RegisterForUIModeChanged((mode: UIMode) => {
|
const uiMode = await new Promise(
|
||||||
|
(r) =>
|
||||||
|
(registration = SteamClient.UI.RegisterForUIModeChanged((mode: UIMode) => {
|
||||||
r(mode);
|
r(mode);
|
||||||
registration.unregister()
|
registration.unregister();
|
||||||
}));
|
})),
|
||||||
|
);
|
||||||
if (uiMode == UIMode.BigPicture) {
|
if (uiMode == UIMode.BigPicture) {
|
||||||
// wait for SP window to exist before loading plugins
|
// wait for SP window to exist before loading plugins
|
||||||
while (!findSP()) {
|
while (!findSP()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user