File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,14 @@ goog.scope(function () {
5757 if ( FontWatcher . SHOULD_USE_NATIVE_LOADER === null ) {
5858 if ( ! ! window . FontFace ) {
5959 var match = / G e c k o .* F i r e f o x \/ ( \d + ) / . exec ( FontWatcher . getUserAgent ( ) ) ;
60- var safari10Match = / O S X .* V e r s i o n \/ 1 0 \. .* S a f a r i / . exec ( FontWatcher . getUserAgent ( ) ) && / A p p l e / . exec ( FontWatcher . getVendor ( ) ) ;
60+ var appleMatch = / A p p l e / . exec ( FontWatcher . getVendor ( ) )
61+ var safari10Match = / O S X .* V e r s i o n \/ 1 0 \. .* S a f a r i / . exec ( FontWatcher . getUserAgent ( ) ) ||
62+ / A p p l e W e b K i t \/ 6 0 3 / . exec ( FontWatcher . getUserAgent ( ) ) ||
63+ / A p p l e W e b K i t \/ 6 0 2 / . exec ( FontWatcher . getUserAgent ( ) )
6164
6265 if ( match ) {
6366 FontWatcher . SHOULD_USE_NATIVE_LOADER = parseInt ( match [ 1 ] , 10 ) > 42 ;
64- } else if ( safari10Match ) {
67+ } else if ( appleMatch && safari10Match ) {
6568 FontWatcher . SHOULD_USE_NATIVE_LOADER = false ;
6669 } else {
6770 FontWatcher . SHOULD_USE_NATIVE_LOADER = true ;
You can’t perform that action at this time.
0 commit comments