diff --git a/redirect/src/index.ts b/redirect/src/index.ts index 12e8a07..1a7c4d7 100644 --- a/redirect/src/index.ts +++ b/redirect/src/index.ts @@ -42,7 +42,7 @@ app.get( country_code: geolocation.data.location.country .alpha2 as string, city: geolocation.data.location.city.name as string, - device_type: ua_parser.getDevice().type, + device_type: ua_parser.getDevice().type || 'desktop', device_vendor: ua_parser.getDevice().vendor, browser: ua_parser.getBrowser().name, os: ua_parser.getOS().name,