File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @cross/runtime" ,
3
- "version" : " 0.0.10 " ,
3
+ "version" : " 0.0.11 " ,
4
4
"exports" : " ./mod.ts" ,
5
5
"fmt" : {
6
6
"lineWidth" : 200
Original file line number Diff line number Diff line change @@ -94,14 +94,14 @@ export function getCurrentProduct(): string {
94
94
case Runtime . Browser : {
95
95
// For browser, get the specific browser
96
96
const userAgent = navigator . userAgent ;
97
- if ( userAgent . indexOf ( "Chrome" ) !== - 1 ) {
98
- return Product . Chrome ;
99
- } else if ( userAgent . indexOf ( "Firefox" ) !== - 1 ) {
100
- return Product . Firefox ;
101
- } else if ( userAgent . indexOf ( "Safari" ) !== - 1 && userAgent . indexOf ( "Chrome" ) === - 1 ) {
97
+ if ( userAgent . indexOf ( "Safari" ) !== - 1 && userAgent . indexOf ( "Chrome" ) === - 1 ) {
102
98
return Product . Safari ;
103
99
} else if ( userAgent . indexOf ( "Edg" ) !== - 1 ) {
104
100
return Product . Edge ;
101
+ } else if ( userAgent . indexOf ( "Chrome" ) !== - 1 ) {
102
+ return Product . Chrome ;
103
+ } else if ( userAgent . indexOf ( "Firefox" ) !== - 1 ) {
104
+ return Product . Firefox ;
105
105
} else {
106
106
return Product . Unsupported ;
107
107
}
You can’t perform that action at this time.
0 commit comments