From 0ee50404a921bdc56bb683a9bfd6eed2c20cb892 Mon Sep 17 00:00:00 2001 From: Beef Date: Tue, 10 Jan 2023 23:44:39 +0000 Subject: [PATCH] [Hotfix] Fix iOS crash with RDT setting --- src/ui/settings/pages/Developer.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ui/settings/pages/Developer.tsx b/src/ui/settings/pages/Developer.tsx index ccc97b0..5562698 100644 --- a/src/ui/settings/pages/Developer.tsx +++ b/src/ui/settings/pages/Developer.tsx @@ -9,7 +9,6 @@ import logger from "@lib/logger"; import AssetDisplay from "@ui/settings/components/AssetDisplay"; const { FormSection, FormRow, FormInput, FormDivider } = Forms; -const { connectToDevTools } = window.__vendetta_rdc; const styles = stylesheet.createThemedStyleSheet({ search: { @@ -45,13 +44,13 @@ export default function Developer() { onPress={() => connectToDebugger(debuggerUrl)} /> - {connectToDevTools && } trailing={FormRow.Arrow} onPress={() => { try { - connectToDevTools({ + window.__vendetta_rdc?.connectToDevTools({ host: debuggerUrl.split(":")[0], resolveRNStyle: RN.StyleSheet.flatten, });