From 68afcb0c391921993372a0b361deb795c4d91313 Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Thu, 15 Feb 2024 10:10:55 -0300 Subject: [PATCH] do not match firefox for ios because it's not Gecko but webkit. (#59037) Co-authored-by: matiasbenedetto Co-authored-by: creativecoder --- .../global-styles/font-library-modal/utils/preview-styles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/utils/preview-styles.js b/packages/edit-site/src/components/global-styles/font-library-modal/utils/preview-styles.js index 9cadc90448dfc..56b3e62801f69 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/utils/preview-styles.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/utils/preview-styles.js @@ -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;