Skip to content

Commit

Permalink
fix(lottie): harden SSR check
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Oct 4, 2023
1 parent eb8beb8 commit d274145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/lottie.js
Original file line number Diff line number Diff line change
@@ -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'

Expand Down

0 comments on commit d274145

Please sign in to comment.