Skip to content

Commit

Permalink
🐛 Fix Google Font bold weight in injectFont function
Browse files Browse the repository at this point in the history
Closes #1802
  • Loading branch information
baptisteArno committed Sep 25, 2024
1 parent 0d782f7 commit 32690cb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/embeds/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typebot.io/js",
"version": "0.3.16",
"version": "0.3.17",
"description": "Javascript library to display typebots on your website",
"license": "AGPL-3.0-or-later",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/embeds/js/src/utils/injectFont.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const injectFont = (font: Font) => {
if (existingFont?.getAttribute("href")?.includes(fontFamily)) return;
existingFont?.remove();
const fontElement = document.createElement("link");
fontElement.href = `${googleFontCdnBaseUrl}?family=${fontFamily}:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&display=swap`;
fontElement.href = `${googleFontCdnBaseUrl}?family=${fontFamily}:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap`;
fontElement.rel = "stylesheet";
fontElement.id = elementId;
document.head.appendChild(fontElement);
Expand Down
2 changes: 1 addition & 1 deletion packages/embeds/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typebot.io/nextjs",
"version": "0.3.16",
"version": "0.3.17",
"license": "AGPL-3.0-or-later",
"description": "Convenient library to display typebots on your Next.js website",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/embeds/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typebot.io/react",
"version": "0.3.16",
"version": "0.3.17",
"description": "Convenient library to display typebots on your React app",
"license": "AGPL-3.0-or-later",
"type": "module",
Expand Down

0 comments on commit 32690cb

Please sign in to comment.