summaryrefslogtreecommitdiff
path: root/frontend/src/index.ts
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2026-03-20 22:08:44 -0400
committerGitHub <noreply@github.com>2026-03-20 22:08:44 -0400
commitb97c27aac4b9ba9a81cda972e65757ec29fa9066 (patch)
treebfb7b24476819b8e5d7d436bd54b01835a6bb0fe /frontend/src/index.ts
parent8b8a1cc4d809a423ac4b9155bdaad25099f1aafd (diff)
downloaddecky-loader-4c0df04c40fbe0844133a319618da724bc3afb1c.tar.gz
decky-loader-4c0df04c40fbe0844133a319618da724bc3afb1c.zip
Fixes for march 19th 2026 beta (#890)HEADv3.2.2-pre1main
Diffstat (limited to 'frontend/src/index.ts')
-rw-r--r--frontend/src/index.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/frontend/src/index.ts b/frontend/src/index.ts
index 4f4ff4f7..7ef5087f 100644
--- a/frontend/src/index.ts
+++ b/frontend/src/index.ts
@@ -22,11 +22,13 @@
DFLWebpack.findModule((m) => m.createPortal && m.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE);
console.debug('[Decky:Boot] Setting up JSX internals...');
- const jsx = DFLWebpack.findModule((m) => m.jsx && Object.keys(m).length == 1)?.jsx;
- if (jsx) {
+ const jsxModule = DFLWebpack.findModule((m) => (m.jsx && m.jsxs) || (m.jsx && Object.keys(m).length == 1));
+ if (jsxModule.jsxs) {
+ window.SP_JSX = jsxModule;
+ } else {
window.SP_JSX = {
- jsx,
- jsxs: jsx,
+ jsx: jsxModule.jsx,
+ jsxs: jsxModule.jsx,
Fragment: window.SP_REACT.Fragment,
};
}