[LEG-246] Geo overlay (#8881)
* Add AgeBlockedGeo
* Add MaxMind usage text
* Add geo overlay
---------
Co-authored-by: rafael <rafael@blueskyweb.xyz>
(cherry picked from commit 912ab1bd9b)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user