Browse Source

Encode google font url

Gerhard Tan 1 year ago
parent
commit
c900459f73
1 changed files with 1 additions and 1 deletions
  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);
 };