[Lib > Preinit] Fix Chat Box Bug™ on iOS (#170)
This commit is contained in:
parent
2cc1f8d76c
commit
8352072654
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { initThemes } from "@lib/themes";
|
import { initThemes } from "@lib/themes";
|
||||||
import { instead } from "spitroast";
|
import { instead } from "@lib/patcher";
|
||||||
|
|
||||||
// Hoist required modules
|
// Hoist required modules
|
||||||
// This used to be in filters.ts, but things became convoluted
|
// This used to be in filters.ts, but things became convoluted
|
||||||
|
@ -21,7 +21,7 @@ if (requireNativeComponent) {
|
||||||
try {
|
try {
|
||||||
return orig(...args);
|
return orig(...args);
|
||||||
} catch {
|
} catch {
|
||||||
return () => null;
|
return args[0];
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue