web/device: add user agent

This commit is contained in:
wukko 2024-07-11 00:27:46 +06:00
parent 02437a686c
commit 4759f2037c
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
2 changed files with 2 additions and 0 deletions

View file

@ -21,6 +21,7 @@ const device = {
mobile, mobile,
}, },
preferredLocale, preferredLocale,
userAgent: navigator.userAgent,
} }
const app = { const app = {

View file

@ -23,6 +23,7 @@
is.android: {device.is.android} is.android: {device.is.android}
is.mobile: {device.is.mobile} is.mobile: {device.is.mobile}
preferredLocale: {device.preferredLocale} preferredLocale: {device.preferredLocale}
userAgent: {device.userAgent}
</div> </div>
app: app: