Skip to content

Commit

Permalink
replace firefox by gecko to cover all gecko engine browsers
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Aldasoro <252415+juanfra@users.noreply.github.com>
  • Loading branch information
matiasbenedetto and juanfra committed Feb 14, 2024
1 parent 4222a7b commit 2f3a0df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,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().includes( 'firefox' ) ) {
if ( window.navigator.userAgent.toLowerCase().includes( 'gecko' ) ) {
output = `"${ output }"`;
}
return output;
Expand Down

0 comments on commit 2f3a0df

Please sign in to comment.