Skip to content

Commit b5b3417

Browse files
authored
Merge pull request #12954 from CesiumGS/iterate-fonts-ff
Fix editor fonts in firefox
2 parents 2ffac63 + 2c789f9 commit b5b3417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sandcastle/src/SandcastleEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function SandcastleEditor({
8686
const documentRef = useRef(document);
8787
useEffect(() => {
8888
const cssName = availableFonts[fontFamily]?.cssValue ?? "Droid Sans Mono";
89-
const fontFace = [...documentRef.current.fonts.values()].find(
89+
const fontFace = [...documentRef.current.fonts].find(
9090
(font) => font.family === cssName && font.weight === "400",
9191
);
9292
if (fontFace?.status !== "loaded") {

0 commit comments

Comments
 (0)