File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,19 @@ export const isIE9 = UA && UA.indexOf('msie 9.0') > 0
18
18
export const isAndroid = UA && UA . indexOf ( 'android' ) > 0
19
19
export const isIos = UA && / ( i p h o n e | i p a d | i p o d | i o s ) / i. test ( UA )
20
20
export const iosVersionMatch = isIos && UA . match ( / o s ( [ \d _ ] + ) / )
21
- export const iosVersion = iosVersionMatch && iosVersionMatch [ 1 ] . split ( '_' )
21
+ export const iosVersion = iosVersionMatch && iosVersionMatch [ 1 ] . split ( '_' ) . map ( Number )
22
22
23
- // detecting iOS UIWebView by indexedDB
24
- export const hasMutationObserverBug = iosVersion && Number ( iosVersion [ 0 ] ) >= 9 && Number ( iosVersion [ 1 ] ) >= 3 && ! window . indexedDB
23
+ // MutationObserver is unreliable in iOS 9.3 UIWebView
24
+ // detecting it by checking presence of IndexedDB
25
+ // ref #3027
26
+ const hasMutationObserverBug =
27
+ iosVersion &&
28
+ ! window . indexedDB && (
29
+ iosVersion [ 0 ] > 9 || (
30
+ iosVersion [ 0 ] === 9 &&
31
+ iosVersion [ 1 ] >= 3
32
+ )
33
+ )
25
34
26
35
let transitionProp
27
36
let transitionEndEvent
You can’t perform that action at this time.
0 commit comments