fix URL resolution

This commit is contained in:
saberzero1 2024-10-17 18:38:25 +02:00
parent 753ea31711
commit 5231007949
No known key found for this signature in database
GPG Key ID: 41AEE99107640F10

View File

@ -13,11 +13,11 @@ const changeTheme = (e: CustomEventMap["themechange"]) => {
{ {
giscus: { giscus: {
setConfig: { setConfig: {
theme: getThemeName(theme), theme: getThemeUrl(getThemeName(theme)),
}, },
}, },
}, },
getThemeUrl(getThemeName(theme)), "https://giscus.app",
) )
} }
@ -81,7 +81,7 @@ document.addEventListener("nav", () => {
const theme = document.documentElement.getAttribute("saved-theme") const theme = document.documentElement.getAttribute("saved-theme")
if (theme) { if (theme) {
giscusScript.setAttribute("data-theme", getThemeName(theme)) giscusScript.setAttribute("data-theme", getThemeUrl(getThemeName(theme)))
} }
giscusContainer.appendChild(giscusScript) giscusContainer.appendChild(giscusScript)