From b72b32761058767d143e9ff08dc238c5ac9b777c Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 7 Jan 2023 20:33:28 -0500 Subject: Fix reloading UI on updates and restarting steam (#303) --- 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