Skip to content

Commit

Permalink
Check dotLottie is set
Browse files Browse the repository at this point in the history
  • Loading branch information
roborourke authored Sep 17, 2024
1 parent 6ae5010 commit 7290308
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lottie.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ document.querySelectorAll( '[data-lottie]' ).forEach( ( lottie ) => {
}
}

dotLottie.unfreeze();
if ( dotLottie ) {
dotLottie.unfreeze();
}
} else {
dotLottie.freeze();
if ( dotLottie ) {
dotLottie.freeze();
}
}
} );
},
Expand Down

0 comments on commit 7290308

Please sign in to comment.