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