From fd4001815a3b9bb7de58ed6b0eb656d260ba2f16 Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Wed, 14 Feb 2024 17:40:48 -0300 Subject: [PATCH] do not match firefox for ios because it's not Gecko but webkit. --- .../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 9cadc90448dfc4..56b3e62801f694 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;