Gate debug

This commit is contained in:
Eric Bailey
2025-07-15 17:41:54 -05:00
parent 79291d83e1
commit 342de0ce67
+2 -1
View File
@@ -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') {