From d2741457d6f391583dc01544497847984a8464e0 Mon Sep 17 00:00:00 2001 From: Cody Bennett <23324155+CodyJasonBennett@users.noreply.github.com> Date: Wed, 4 Oct 2023 08:21:10 -0500 Subject: [PATCH] fix(lottie): harden SSR check --- src/libs/lottie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'