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, });