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 <mmaattiiaass@git.wordpress.org>
Co-authored-by: creativecoder <grantmkin@git.wordpress.org>
  • Loading branch information
3 people committed Feb 15, 2024
1 parent 2349114 commit 68afcb0
Showing 1 changed file with 1 addition and 1 deletion.
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

1 comment on commit 68afcb0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 68afcb0.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7916454850
📝 Reported issues:

Please sign in to comment.