Skip to content

Commit

Permalink
fix(font): skip whenever userAgent is Firefox (#7420)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciord committed Mar 20, 2020
1 parent 0433643 commit 9fe1874
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/expo-font/build/ExpoFontLoader.web.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/expo-font/build/ExpoFontLoader.web.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion packages/expo-font/src/ExpoFontLoader.web.ts
Expand Up @@ -136,5 +136,7 @@ function isFontLoadingListenerSupported(): boolean {
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
// Edge is broken https://github.com/bramstein/fontfaceobserver/issues/109#issuecomment-333356795
const isEdge = userAgent.includes('Edge');
return !isSafari && !isIOS && !isEdge;
// Firefox
const isFirefox = userAgent.includes('Firefox');
return !isSafari && !isIOS && !isEdge && !isFirefox;
}

0 comments on commit 9fe1874

Please sign in to comment.