Skip to content

Commit

Permalink
fix embed code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbirddev committed Jan 20, 2025
1 parent 25765c4 commit 85377cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/browser/fontPicker/landingComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import useEmbedStore from "./embed/useEmbedStore";
import EmbedModal from "./embed/EmbedModal";
import {MdOutlineFeedback} from "react-icons/md";
import {useI18n} from "@fontsensei/locales";
import {fontFamilyToUrlParam} from "../../@fontsensei/utils";

const GITHUB_LINK = "https://github.com/mrbirddev/fontsensei";
export const getExtraMenuItems = (t: ReturnType<typeof useI18n>) => [
Expand Down Expand Up @@ -35,7 +36,7 @@ export const Toolbar: NonNullable<FontPickerPageContextOpts>['Toolbar'] = ({font
content={`<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=${
fontItem.family.replace(' ', '+')
fontFamilyToUrlParam(fontItem.family)
}${
fontItem.metadata.defaultSuffix
}&display=swap" rel="stylesheet">`}
Expand Down

0 comments on commit 85377cc

Please sign in to comment.