File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 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
1818export const isAndroid = UA && UA . indexOf ( 'android' ) > 0
1919export const isIos = UA && / ( i p h o n e | i p a d | i p o d | i o s ) / i. test ( UA )
2020export 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 )
2222
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+ )
2534
2635let transitionProp
2736let transitionEndEvent
You can’t perform that action at this time.
0 commit comments