From 6bdb44325afcd36ecd322c4946baa518b0e632ce Mon Sep 17 00:00:00 2001 From: Cody Bennett Date: Mon, 10 Nov 2025 15:16:04 -0600 Subject: [PATCH] fix(lottie): harden SSR check to exclude react-native --- src/libs/lottie.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/lottie.js b/src/libs/lottie.js index 54fefc0f..ef5fb527 100644 --- a/src/libs/lottie.js +++ b/src/libs/lottie.js @@ -1,7 +1,7 @@ const lottie = /* @__PURE__ */ (() => { if ( - typeof navigator === 'undefined' || - typeof document === 'undefined' || + typeof navigator === 'undefined' || navigator.product === 'ReactNative' || + typeof document === 'undefined' || typeof document.getElementsByTagName !== 'function' || typeof document.createElement !== 'function' || typeof CanvasRenderingContext2D === 'undefined' ) return {}