File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,14 @@ goog.scope(function () {
57
57
if ( FontWatcher . SHOULD_USE_NATIVE_LOADER === null ) {
58
58
if ( ! ! window . FontFace ) {
59
59
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 ( ) )
61
64
62
65
if ( match ) {
63
66
FontWatcher . SHOULD_USE_NATIVE_LOADER = parseInt ( match [ 1 ] , 10 ) > 42 ;
64
- } else if ( safari10Match ) {
67
+ } else if ( appleMatch && safari10Match ) {
65
68
FontWatcher . SHOULD_USE_NATIVE_LOADER = false ;
66
69
} else {
67
70
FontWatcher . SHOULD_USE_NATIVE_LOADER = true ;
You can’t perform that action at this time.
0 commit comments