Bluesky app fork with some witchin' additions 馃挮
at d3878bf0acef4efbb48977f36d65c7a8fa653e62 19 lines 594 B view raw
1import * as aaDebug from '#/ageAssurance/debug' 2import {IS_DEV} from '#/env' 3import {type Geolocation} from '#/geolocation/types' 4 5const localEnabled = false 6export const enabled = IS_DEV && (localEnabled || aaDebug.geolocation) 7export const geolocation: Geolocation = aaDebug.geolocation ?? { 8 countryCode: 'AU', 9 regionCode: undefined, 10} 11export const deviceGeolocation: Geolocation = aaDebug.deviceGeolocation ?? { 12 countryCode: 'AU', 13 regionCode: undefined, 14} 15 16export async function resolve<T>(data: T) { 17 await new Promise(y => setTimeout(y, 2000)) // simulate network 18 return data 19}