File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import {
26
26
} from "https://unpkg.com/[email protected] /lit-element.js?module" ;
27
27
28
28
console . info (
29
- `%c FLEX-HORSESHOE-CARD \n%c Version 1.1 ` ,
29
+ `%c FLEX-HORSESHOE-CARD \n%c Version 1.2 ` ,
30
30
'color: yellow; font-weight: bold; background: black' ,
31
31
'color: white; font-weight: bold; background: dimgray' ,
32
32
) ;
@@ -98,10 +98,13 @@ import {
98
98
// After iOS 13 you should detect iOS devices like this, since iPad will not be detected as iOS devices
99
99
// by old ways (due to new "desktop" options, enabled by default)
100
100
101
- this . isSafari = ! ! navigator . userAgent . match ( / V e r s i o n \/ [ \d \. ] + .* S a f a r i / ) ;
102
- this . iOS = ( / i P a d | i P h o n e | i P o d / . test ( navigator . userAgent ) ||
103
- ( navigator . platform === 'MacIntel' && navigator . maxTouchPoints > 1 ) ) &&
104
- ! window . MSStream ;
101
+ this . isAndroid = ! ! navigator . userAgent . match ( / A n d r o i d / ) ;
102
+ if ( ! this . isAndroid ) {
103
+ this . isSafari = ! ! navigator . userAgent . match ( / V e r s i o n \/ [ \d \. ] + .* S a f a r i / ) ;
104
+ this . iOS = ( / i P a d | i P h o n e | i P o d / . test ( navigator . userAgent ) ||
105
+ ( navigator . platform === 'MacIntel' && navigator . maxTouchPoints > 1 ) ) &&
106
+ ! window . MSStream ;
107
+ }
105
108
}
106
109
107
110
/*******************************************************************************
You can’t perform that action at this time.
0 commit comments