Encode google font url

This commit is contained in:
Gerhard Tan 2023-09-18 09:37:19 +08:00
parent 3e1514239c
commit c900459f73
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ const loadAsyncGoogleFont = () => {
getClientConfig()?.buildMode === "export" ? remoteFontUrl : proxyFontUrl;
linkEl.rel = "stylesheet";
linkEl.href =
googleFontUrl + "/css2?family=Noto+Sans:wght@300;400;700;900&display=swap";
googleFontUrl + "/css2?family=" + encodeURIComponent("Noto Sans:wght@300;400;700;900") + "&display=swap";
document.head.appendChild(linkEl);
};