mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-21 10:29:00 +02:00
fix(wrapReactType): try another method
This commit is contained in:
@@ -83,8 +83,7 @@ export function unpatch(obj: any, name: any): void {
|
||||
}
|
||||
|
||||
export function wrapReactType(node: any) {
|
||||
const oldComponent = node.type;
|
||||
return node.type = (...args: any[]) => React.createElement(oldComponent, ...args)
|
||||
return node.type = {...node.type}
|
||||
}
|
||||
|
||||
export function getReactInstance(o: HTMLElement | Element | Node) {
|
||||
|
||||
Reference in New Issue
Block a user