From 342de0ce674c8a735f188f77f89be8127d1d66ba Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 15 Jul 2025 17:41:54 -0500 Subject: [PATCH] Gate debug --- src/state/geolocation.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/state/geolocation.tsx b/src/state/geolocation.tsx index e399a809ca..e55986cb06 100644 --- a/src/state/geolocation.tsx +++ b/src/state/geolocation.tsx @@ -3,6 +3,7 @@ import EventEmitter from 'eventemitter3' import {networkRetry} from '#/lib/async/retry' import {logger} from '#/logger' +import {isWeb} from '#/platform/detection' import {type Device, device} from '#/storage' const events = new EventEmitter() @@ -187,7 +188,7 @@ export function useGeolocation() { return React.useContext(context) } -if (__DEV__) { +if (__DEV__ && isWeb) { // @ts-ignore window.setGeolocation = (geo: Device['geolocation']) => { if (!geo?.countryCode || typeof geo?.isAgeRestrictedGeo !== 'boolean') {