summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2024-05-29 21:01:49 -0400
committerAAGaming <aagaming@riseup.net>2024-05-29 21:01:49 -0400
commit2b4e3318ca2d221656d862a6524b076da820b78b (patch)
treeb38d17ff42ed95a5f0bdedf02b82a14425e7d386 /frontend
parentb84dcd99adbffcc2710fb916c35f698dc57fea2c (diff)
downloaddecky-loader-2b4e3318ca2d221656d862a6524b076da820b78b.tar.gz
decky-loader-2b4e3318ca2d221656d862a6524b076da820b78b.zip
fix latest betav2.12.1-pre1
VALVEEEEE
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/index.ts8
-rw-r--r--frontend/src/steamfixes/index.ts4
2 files changed, 10 insertions, 2 deletions
diff --git a/frontend/src/index.ts b/frontend/src/index.ts
index 6588cb5c..0faea32c 100644
--- a/frontend/src/index.ts
+++ b/frontend/src/index.ts
@@ -1,5 +1,13 @@
// Sets up DFL, then loads start.ts which starts up the loader
(async () => {
+ if (!window.SP_REACT) {
+ console.debug('Setting up React globals...');
+ // deliberate partial import
+ const DFLWebpack = await import('decky-frontend-lib/dist/webpack');
+ // TODO move these finds to dfl in v4
+ window.SP_REACT = DFLWebpack.findModule((m) => m.Component && m.PureComponent && m.useLayoutEffect);
+ window.SP_REACTDOM = DFLWebpack.findModule((m) => m.createPortal && m.createRoot);
+ }
console.debug('Setting up decky-frontend-lib...');
window.DFL = await import('decky-frontend-lib');
await import('./start');
diff --git a/frontend/src/steamfixes/index.ts b/frontend/src/steamfixes/index.ts
index fe0e3e05..e3f2b284 100644
--- a/frontend/src/steamfixes/index.ts
+++ b/frontend/src/steamfixes/index.ts
@@ -1,4 +1,4 @@
-import reloadFix from './reload';
+// import reloadFix from './reload';
import restartFix from './restart';
let fixes: Function[] = [];
@@ -7,6 +7,6 @@ export function deinitSteamFixes() {
}
export async function initSteamFixes() {
- fixes.push(await reloadFix());
+ // fixes.push(await reloadFix());
fixes.push(await restartFix());
}