Skip to content

Commit

Permalink
Lottie: Add document check for SSR. (#26989)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett authored Oct 17, 2023
1 parent 4bcd279 commit de5932e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/jsm/libs/lottie_canvas.module.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
const lottie = {};

if (typeof document !== 'undefined') {

const svgNS = 'http://www.w3.org/2000/svg';

let locationHref = '';
Expand Down Expand Up @@ -4547,7 +4551,6 @@ const Matrix = (function () {
};
}());

const lottie = {};
var standalone = '__[STANDALONE]__';
var animationData = '__[ANIMATIONDATA]__';
var renderer = '';
Expand Down Expand Up @@ -14841,4 +14844,6 @@ setExpressionsPlugin(Expressions);
initialize$1();
initialize();

}

export { lottie as default };

0 comments on commit de5932e

Please sign in to comment.