mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
fix(umami): format correct string from custom hosts (#826)
This commit is contained in:
parent
330e322e48
commit
51818efc38
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ function addGlobalPageResources(
|
|||
} else if (cfg.analytics?.provider === "umami") {
|
||||
componentResources.afterDOMLoaded.push(`
|
||||
const umamiScript = document.createElement("script")
|
||||
umamiScript.src = cfg.analytics.host ?? "https://analytics.umami.is/script.js"
|
||||
umamiScript.src = ${cfg.analytics.host} ?? "https://analytics.umami.is/script.js"
|
||||
umamiScript.setAttribute("data-website-id", "${cfg.analytics.websiteId}")
|
||||
umamiScript.async = true
|
||||
|
||||
|
|
Loading…
Reference in a new issue