fix: umami analytics date attribute (#477)

This commit is contained in:
Yuto Nagata 2023-09-16 11:17:20 +09:00 committed by GitHub
parent 9ae6343dd0
commit 422ba5c365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ function addGlobalPageResources(
componentResources.afterDOMLoaded.push(`
const umamiScript = document.createElement("script")
umamiScript.src = "https://analytics.umami.is/script.js"
umamiScript["data-website-id"] = "${cfg.analytics.websiteId}"
umamiScript.setAttribute("data-website-id", "${cfg.analytics.websiteId}")
umamiScript.async = true
document.head.appendChild(umamiScript)