Fix "injectErrorPageUseEffect" patch

This commit is contained in:
redphx 2025-05-29 08:38:41 +07:00
parent 256f28695e
commit 4c8a49a43a

View File

@ -1123,7 +1123,10 @@ ${subsVar} = subs;
return false;
}
return PatcherUtils.injectUseEffect(str, index + 4, 'Script', 'ui.error.rendered', ',');
str = PatcherUtils.insertAt(str, index + 4, '{');
str = PatcherUtils.injectUseEffect(str, index + 5, 'Script', 'ui.error.rendered');
str += '}';
return str;
},
injectStreamMenuUseEffect(str: string) {