tweb/src/environment/geolocationSupport.ts

4 lines
130 B
TypeScript

const IS_GEOLOCATION_SUPPORTED = !!navigator?.geolocation?.getCurrentPosition && false;
export default IS_GEOLOCATION_SUPPORTED;