We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ffac63 + 2c789f9 commit b5b3417Copy full SHA for b5b3417
packages/sandcastle/src/SandcastleEditor.tsx
@@ -86,7 +86,7 @@ function SandcastleEditor({
86
const documentRef = useRef(document);
87
useEffect(() => {
88
const cssName = availableFonts[fontFamily]?.cssValue ?? "Droid Sans Mono";
89
- const fontFace = [...documentRef.current.fonts.values()].find(
+ const fontFace = [...documentRef.current.fonts].find(
90
(font) => font.family === cssName && font.weight === "400",
91
);
92
if (fontFace?.status !== "loaded") {
0 commit comments