diff options
author | Eric Bailey <git@esb.lol> | 2025-08-22 14:55:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-22 14:55:16 -0500 |
commit | 912ab1bd9b771cf14c830203332f3620e661a752 (patch) | |
tree | 2080675e48c0989b1e6c05272ca9ea2cc1187e6e /src/state/geolocation.tsx | |
parent | f038ac70da530416161e870fbbbd42159cea2bbe (diff) | |
download | voidsky-912ab1bd9b771cf14c830203332f3620e661a752.tar.zst |
[LEG-246] Geo overlay (#8881)
* Add AgeBlockedGeo * Add MaxMind usage text * Add geo overlay --------- Co-authored-by: rafael <rafael@blueskyweb.xyz>
Diffstat (limited to 'src/state/geolocation.tsx')
-rw-r--r-- | src/state/geolocation.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/geolocation.tsx b/src/state/geolocation.tsx index 4581996a0..a69161324 100644 --- a/src/state/geolocation.tsx +++ b/src/state/geolocation.tsx @@ -25,6 +25,7 @@ const onGeolocationUpdate = ( */ export const DEFAULT_GEOLOCATION: Device['geolocation'] = { countryCode: undefined, + isAgeBlockedGeo: undefined, isAgeRestrictedGeo: false, } @@ -40,6 +41,7 @@ async function getGeolocation(): Promise<Device['geolocation']> { if (json.countryCode) { return { countryCode: json.countryCode, + isAgeBlockedGeo: json.isAgeBlockedGeo ?? false, isAgeRestrictedGeo: json.isAgeRestrictedGeo ?? false, } } else { |