Skip to content

Commit ad4e33d

Browse files
more efficient
1 parent eb83061 commit ad4e33d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/font.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ export const getFontFamily = fontName => {
114114
}
115115

116116
// Modern font stacks.
117-
if ( fontName.toLowerCase() in MODERN_FONTS ) {
118-
return MODERN_FONTS[ fontName.toLowerCase() ]
117+
if ( MODERN_FONTS[ fontName ] ) {
118+
return MODERN_FONTS[ fontName ]
119119
}
120120

121121
// Google Font.

0 commit comments

Comments
 (0)