[Lib > Preinit] Fix Chat Box Bug™ on iOS (#170)

This commit is contained in:
nexpid 2023-10-20 17:43:17 +02:00 committed by GitHub
parent 2cc1f8d76c
commit 8352072654
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];
} }
}) })
} }