Files
brave-core/patches/third_party-lottie-lottie_worker.js.patch

13 lines
541 B
Diff

diff --git a/third_party/lottie/lottie_worker.js b/third_party/lottie/lottie_worker.js
index ca9e916051e7ad8b4ba820c07b8fe4e3d0884144..112f3435c340bd4f443a4a8f0eec0605038569e3 100644
--- a/third_party/lottie/lottie_worker.js
+++ b/third_party/lottie/lottie_worker.js
@@ -13488,6 +13488,7 @@ function initAnimation(animationData, initParams, canvas) {
},
});
+ currentAnimation.addEventListener("complete", () => postMessage({ name: 'complete' }));
sendInitializedEvent();
// Play the animation if its not already playing.