mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Host URL data attribute should take precedence.
This commit is contained in:
parent
672d9281a9
commit
c69a703c7f
@ -23,7 +23,7 @@
|
|||||||
const domain = attr(_data + 'domains') || '';
|
const domain = attr(_data + 'domains') || '';
|
||||||
const domains = domain.split(',').map(n => n.trim());
|
const domains = domain.split(',').map(n => n.trim());
|
||||||
const host =
|
const host =
|
||||||
'__COLLECT_API_HOST__' || hostUrl || currentScript.src.split('/').slice(0, -1).join('/');
|
hostUrl || '__COLLECT_API_HOST__' || currentScript.src.split('/').slice(0, -1).join('/');
|
||||||
const endpoint = `${host.replace(/\/$/, '')}__COLLECT_API_ENDPOINT__`;
|
const endpoint = `${host.replace(/\/$/, '')}__COLLECT_API_ENDPOINT__`;
|
||||||
const screen = `${width}x${height}`;
|
const screen = `${width}x${height}`;
|
||||||
const eventRegex = /data-umami-event-([\w-_]+)/;
|
const eventRegex = /data-umami-event-([\w-_]+)/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user