diff --git a/src/libs/lottie.js b/src/libs/lottie.js index 7a9f0859..2c2d699d 100644 --- a/src/libs/lottie.js +++ b/src/libs/lottie.js @@ -1,5 +1,5 @@ const lottie = (() => { - if (typeof navigator === 'undefined') return {} + if (typeof navigator === 'undefined' || typeof document === 'undefined') return {} const svgNS = 'http://www.w3.org/2000/svg'