Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 66ceecc

Browse files
refact($SnifferProvider): use bodyStyle var instead of document.body.style
Closes #10602
1 parent 349742b commit 66ceecc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/sniffer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ function $SnifferProvider() {
4545
animations = !!(('animation' in bodyStyle) || (vendorPrefix + 'Animation' in bodyStyle));
4646

4747
if (android && (!transitions || !animations)) {
48-
transitions = isString(document.body.style.webkitTransition);
49-
animations = isString(document.body.style.webkitAnimation);
48+
transitions = isString(bodyStyle.webkitTransition);
49+
animations = isString(bodyStyle.webkitAnimation);
5050
}
5151
}
5252

0 commit comments

Comments
 (0)