Skip to content

Commit de5932e

Browse files
Lottie: Add document check for SSR. (#26989)
1 parent 4bcd279 commit de5932e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/jsm/libs/lottie_canvas.module.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
const lottie = {};
2+
3+
if (typeof document !== 'undefined') {
4+
15
const svgNS = 'http://www.w3.org/2000/svg';
26

37
let locationHref = '';
@@ -4547,7 +4551,6 @@ const Matrix = (function () {
45474551
};
45484552
}());
45494553

4550-
const lottie = {};
45514554
var standalone = '__[STANDALONE]__';
45524555
var animationData = '__[ANIMATIONDATA]__';
45534556
var renderer = '';
@@ -14841,4 +14844,6 @@ setExpressionsPlugin(Expressions);
1484114844
initialize$1();
1484214845
initialize();
1484314846

14847+
}
14848+
1484414849
export { lottie as default };

0 commit comments

Comments
 (0)