We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9562b63 commit 063b5e1Copy full SHA for 063b5e1
packages/core/src/render3/instructions/animation.ts
@@ -32,9 +32,7 @@ const areAnimationSupported =
32
(typeof ngServerMode === 'undefined' || !ngServerMode) &&
33
typeof document !== 'undefined' &&
34
// tslint:disable-next-line:no-toplevel-property-access
35
- typeof document.body !== 'undefined' &&
36
- // tslint:disable-next-line:no-toplevel-property-access
37
- typeof document.body.getAnimations === 'function';
+ typeof document?.documentElement?.getAnimations === 'function';
38
39
const noOpAnimationComplete = () => {};
40
0 commit comments