From 029c7a45b9e2c1a54059073a0624b75e0e3df39d Mon Sep 17 00:00:00 2001 From: Cody Bennett Date: Sun, 1 Oct 2023 07:01:15 -0500 Subject: [PATCH] fix: SSR w/lottie (#299) --- src/libs/lottie.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/lottie.js b/src/libs/lottie.js index 7dd1fbd0..7a9f0859 100644 --- a/src/libs/lottie.js +++ b/src/libs/lottie.js @@ -1,4 +1,6 @@ const lottie = (() => { + if (typeof navigator === 'undefined') return {} + const svgNS = 'http://www.w3.org/2000/svg' let locationHref = ''