summaryrefslogtreecommitdiff
path: root/frontend/src/plugin-loader.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
-rw-r--r--frontend/src/plugin-loader.tsx11
1 files changed, 7 insertions, 4 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index 28927f1e..f03877fa 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -179,10 +179,13 @@ class PluginLoader extends Logger {
private async loadPlugins() {
let registration: any;
- const uiMode = await new Promise(r => registration = SteamClient.UI.RegisterForUIModeChanged((mode: UIMode) => {
- r(mode);
- registration.unregister()
- }));
+ const uiMode = await new Promise(
+ (r) =>
+ (registration = SteamClient.UI.RegisterForUIModeChanged((mode: UIMode) => {
+ r(mode);
+ registration.unregister();
+ })),
+ );
if (uiMode == UIMode.BigPicture) {
// wait for SP window to exist before loading plugins
while (!findSP()) {