@@ -19,6 +19,7 @@ function $SnifferProvider() {
19
19
this . $get = [ '$window' , '$document' , function ( $window , $document ) {
20
20
var eventSupport = { } ,
21
21
android = int ( ( / a n d r o i d ( \d + ) / . exec ( lowercase ( ( $window . navigator || { } ) . userAgent ) ) || [ ] ) [ 1 ] ) ,
22
+ boxee = / B o x e e / i. test ( ( $window . navigator || { } ) . userAgent ) ,
22
23
document = $document [ 0 ] || { } ,
23
24
vendorPrefix ,
24
25
vendorRegex = / ^ ( M o z | w e b k i t | O | m s ) (? = [ A - Z ] ) / ,
@@ -42,10 +43,10 @@ function $SnifferProvider() {
42
43
43
44
transitions = ! ! ( ( 'transition' in bodyStyle ) || ( vendorPrefix + 'Transition' in bodyStyle ) ) ;
44
45
animations = ! ! ( ( 'animation' in bodyStyle ) || ( vendorPrefix + 'Animation' in bodyStyle ) ) ;
45
-
46
+
46
47
if ( android && ( ! transitions || ! animations ) ) {
47
- transitions = isString ( document . body . style . webkitTransition ) ;
48
- animations = isString ( document . body . style . webkitAnimation ) ;
48
+ transitions = isString ( document . body . style . webkitTransition ) ;
49
+ animations = isString ( document . body . style . webkitAnimation ) ;
49
50
}
50
51
}
51
52
@@ -55,7 +56,10 @@ function $SnifferProvider() {
55
56
// so let's not use the history API at all.
56
57
// http://code.google.com/p/android/issues/detail?id=17471
57
58
// https://github.com/angular/angular.js/issues/904
58
- history : ! ! ( $window . history && $window . history . pushState && ! ( android < 4 ) ) ,
59
+
60
+ // older webit browser (533.9) on Boxee box has exactly the same problem as Android has
61
+ // so let's not use the history API also
62
+ history : ! ! ( $window . history && $window . history . pushState && ! ( android < 4 ) && ! boxee ) ,
59
63
hashchange : 'onhashchange' in $window &&
60
64
// IE8 compatible mode lies
61
65
( ! document . documentMode || document . documentMode > 7 ) ,
0 commit comments