[LEG-246] Geo overlay (#8881)

* Add AgeBlockedGeo

* Add MaxMind usage text

* Add geo overlay

---------

Co-authored-by: rafael <rafael@blueskyweb.xyz>
This commit is contained in:
Eric Bailey
2025-08-22 14:55:16 -05:00
committed by GitHub
parent f038ac70da
commit 912ab1bd9b
9 changed files with 269 additions and 22 deletions
+2
View File
@@ -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 {