From 81fbd0f83f11d5074bb945f0f6d7b6508e9d32d7 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Thu, 29 Dec 2022 23:46:47 -0500 Subject: Fix reloading UI on updates and restarting steam --- frontend/src/steamfixes/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 frontend/src/steamfixes/index.ts (limited to 'frontend/src/steamfixes/index.ts') diff --git a/frontend/src/steamfixes/index.ts b/frontend/src/steamfixes/index.ts new file mode 100644 index 00000000..988f3bd7 --- /dev/null +++ b/frontend/src/steamfixes/index.ts @@ -0,0 +1,12 @@ +import reloadFix from './reload'; +import restartFix from './restart'; +let fixes: Function[] = []; + +export function deinitSteamFixes() { + fixes.forEach((deinit) => deinit()); +} + +export async function initSteamFixes() { + fixes.push(reloadFix()); + fixes.push(await restartFix()); +} -- cgit v1.2.3