this repo has no description

Fix possible causes in crashScreen

uwx f7a8ceb8 da6a944f

Changed files
+2 -2
packages
core-extensions
src
moonbase
webpackModules
+2 -2
packages/core-extensions/src/moonbase/webpackModules/crashScreen.tsx
···
const causes = React.useMemo(() => {
const causes = new Set<string>();
if (state.error.stack) {
-
for (const [, id] of state.error.stack.matchAll(MODULE_REGEX))
+
for (const [, , id] of state.error.stack.matchAll(MODULE_REGEX))
for (const ext of moonlight.patched.get(id) ?? []) causes.add(ext);
}
-
for (const [, id] of state.info.componentStack.matchAll(MODULE_REGEX))
+
for (const [, , id] of state.info.componentStack.matchAll(MODULE_REGEX))
for (const ext of moonlight.patched.get(id) ?? []) causes.add(ext);
return [...causes];
}, []);