Fixes for march 19th 2026 beta (#890)

This commit is contained in:
AAGaming
2026-03-20 22:08:44 -04:00
committed by GitHub
parent 8b8a1cc4d8
commit b97c27aac4
4 changed files with 31 additions and 16 deletions
+6 -4
View File
@@ -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,
};
}