Skip to content

Commit

Permalink
Show animations, fix export only on server side (MagicMirrorOrg#3649)
Browse files Browse the repository at this point in the history
fix MagicMirrorOrg#3644 so only on server side
  • Loading branch information
sdetweil authored Dec 8, 2024
1 parent 76fac78 commit 39ab651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ _This release is scheduled to be released on 2025-01-01._
### Changed

- [core] Run code style checks in workflow only once.
- [core] fix animations export #3644 only on server side

### Removed

Expand Down
2 changes: 1 addition & 1 deletion js/animateCSS.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ function removeAnimateCSS (element, animation) {
node.classList.remove("animate__animated", animationName);
node.style.removeProperty("--animate-duration");
}
module.exports = { AnimateCSSIn, AnimateCSSOut };
if (typeof window === "undefined") module.exports = { AnimateCSSIn, AnimateCSSOut };

0 comments on commit 39ab651

Please sign in to comment.