Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ref #2532096 - Added better detection to Get's env for Chrome on Android

  • Loading branch information...
commit 42a6544f291365e9f5791d3b076030fd5f3804bc 1 parent 64098e1
@davglass authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  src/get/js/get.js
  2. +1 −1  src/get/tests/get-test.js
View
2  src/get/js/get.js
@@ -538,7 +538,7 @@ Y.Get = Get = {
// "onload".
// davglass: Seems that Chrome on Android needs this to be false.
cssLoad: ((!ua.gecko && !ua.webkit) ||
- ua.gecko >= 9 || ua.webkit >= 535.24) && !(ua.chrome && ua.mobile),
+ ua.gecko >= 9 || ua.webkit >= 535.24) && !(ua.chrome && ua.chrome <=18),
// True if this browser preserves script execution order while
// loading scripts in parallel as long as the script node's `async`
View
2  src/get/tests/get-test.js
@@ -13,7 +13,7 @@ YUI.add('get-test', function (Y) {
// True if this browser should call an onFailure callback on a link
// that 404s. Currently only Firefox 9+ and WebKit 535.24+ (Chrome
// 19) support this.
- cssFailure: ua.gecko >= 9 || ua.webkit >= 535.24,
+ cssFailure: ua.gecko >= 9 || (ua.webkit >= 535.24 && !(ua.chrome && ua.chrome <=18)),
// True if this browser should call an onFailure callback on a
// script that 404s.

0 comments on commit 42a6544

Please sign in to comment.
Something went wrong with that request. Please try again.