File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,9 @@ define(function () {
139
139
* @return {boolean } chrome
140
140
*/
141
141
isGoogleChrome : function ( ) {
142
- return / (?: C h r o m e | C r M o | C r i O S ) \/ ( [ 0 - 9 ] { 1 , 2 } \. [ 0 - 9 ] \. [ 0 - 9 ] { 3 , 4 } \. [ 0 - 9 ] + ) / i. test ( ua ) &&
143
- ! / ( s a m s u n g | m i u i b r o w s e r | u c b r o w s e r | q q b r o w s e r | h u a w e i b r o w s e r | h e y t a p b r o w s e r | o p p o b r o w s e r | v i v o b r o w s e r | l e b r o w s e r | m z b r o w s e r ) / i. test ( ua ) ;
142
+ var andrChrome = / ^ M o z i l l a \/ ( \d * ?( \. \d * ?) * ?) \( L i n u x ; A n d r o i d ( \d * ?( \. \d * ?) * ?) ; .* ?\) A p p l e W e b K i t \/ ( \d * ?( \. \d * ?) * ?) \( K H T M L , l i k e G e c k o \) C h r o m e \/ ( \d * ?( \. \d * ?) * ?) M o b i l e S a f a r i \/ ( \d * ?( \. \d * ?) * ?) $ / . test ( ua ) ;
143
+ var iosChrome = / ^ M o z i l l a \/ ( \d * ?( \. \d * ?) * ?) \( i P h o n e ; C P U i P h o n e O S ( \d * ?( _ \d * ?) * ?) l i k e M a c O S X \) A p p l e W e b K i t \/ ( \d * ?( \. \d * ?) * ?) \( K H T M L , l i k e G e c k o \) C r i O S \/ ( \d * ?( \. \d * ?) * ?) M o b i l e \/ ( .* ?) S a f a r i \/ ( \d * ?( \. \d * ?) * ?) $ / . test ( ua ) ;
144
+ return andrChrome || iosChrome ;
144
145
} ,
145
146
// kernel
146
147
isWKWebview : function ( ) {
You can’t perform that action at this time.
0 commit comments