Explorar o código

Encode google font url

Gerhard Tan hai 1 ano
pai
achega
c900459f73
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/components/home.tsx

+ 1 - 1
app/components/home.tsx

@@ -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);
 };