MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / handler

Function handler

apps/webuiapps/src/components/ChatPanel/index.tsx:437–443  ·  view source on GitHub ↗
(e: Event)

Source from the content-addressed store, hash-verified

435 // Open mod editor when triggered from Shell (e.g. after card import mod generation)
436 useEffect(() => {
437 const handler = (e: Event) => {
438 const modId = (e as CustomEvent<{ modId: string }>).detail?.modId;
439 if (modId) {
440 setInitialEditModId(modId);
441 setShowModPanel(true);
442 }
443 };
444 window.addEventListener('open-mod-editor', handler);
445 return () => window.removeEventListener('open-mod-editor', handler);
446 }, []);

Callers

nothing calls this directly

Calls 1

getActiveModEntryFunction · 0.90

Tested by

no test coverage detected