Skip to content

Commit

Permalink
add lottie-web patch
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed May 28, 2024
1 parent 18d648a commit 780c03d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .yarn/patches/lottie-web-npm-5.12.2-942dc9e22a.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/build/player/lottie.js b/build/player/lottie.js
index cddf7ca82a09be4b846c83e3173ad65b874f72a9..e8f1676c31c81d01fff2b65c5db3aa71eb8525c3 100644
--- a/build/player/lottie.js
+++ b/build/player/lottie.js
@@ -5276,7 +5276,7 @@
lottie.version = '5.12.2';

function checkReady() {
- if (document.readyState === 'complete') {
+ if (typeof document !== 'undefined' && document.readyState === 'complete') {
clearInterval(readyStateCheckInterval);
searchAnimations();
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
},
"packageManager": "[email protected]",
"resolutions": {
"@use-it/event-listener@npm:^0.1.2": "patch:@use-it/event-listener@npm%3A0.1.7#~/.yarn/patches/@use-it-event-listener-npm-0.1.7-56ef42a654.patch"
"@use-it/event-listener@npm:^0.1.2": "patch:@use-it/event-listener@npm%3A0.1.7#~/.yarn/patches/@use-it-event-listener-npm-0.1.7-56ef42a654.patch",
"lottie-web@npm:^5.12.2": "patch:lottie-web@npm%3A5.12.2#~/.yarn/patches/lottie-web-npm-5.12.2-942dc9e22a.patch"
}
}

0 comments on commit 780c03d

Please sign in to comment.