mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Added tracking code form.
This commit is contained in:
parent
c4b75e4aec
commit
58a1be7a30
27 changed files with 100 additions and 42 deletions
|
|
@ -16,7 +16,7 @@ export function secret() {
|
|||
export function uuid(...args) {
|
||||
if (!args.length) return v4();
|
||||
|
||||
return v5(args.join(''), v5(process.env.HASH_SALT, v5.DNS));
|
||||
return v5(args.join(''), v5.DNS);
|
||||
}
|
||||
|
||||
export function isValidId(s) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ export function getDevice(screen, browser, os) {
|
|||
}
|
||||
return 'desktop';
|
||||
} else if (MOBILE_OS.includes(os)) {
|
||||
if (os === 'Amazon OS' || width < MOBILE_SCREEN_WIDTH) {
|
||||
if (os === 'Amazon OS' || width > MOBILE_SCREEN_WIDTH) {
|
||||
return 'tablet';
|
||||
}
|
||||
return 'mobile';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue