Skip to content

Commit

Permalink
do not match firefox for ios because it's not Gecko but webkit. (#59037)
Browse files Browse the repository at this point in the history
Co-authored-by: matiasbenedetto <[email protected]>
Co-authored-by: creativecoder <[email protected]>
  • Loading branch information
3 people authored and getdave committed Feb 20, 2024
1 parent 4d94d57 commit 331f046
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function formatFontFaceName( input ) {
output = output.replace( /^["']|["']$/g, '' );

// Firefox needs the font name to be wrapped in double quotes meanwhile other browsers don't.
if ( window.navigator.userAgent.toLowerCase().match( /firefox|fxios/i ) ) {
if ( window.navigator.userAgent.toLowerCase().includes( 'firefox' ) ) {
output = `"${ output }"`;
}
return output;
Expand Down

0 comments on commit 331f046

Please sign in to comment.