Skip to content

Commit

Permalink
🌀
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Dec 3, 2023
1 parent f412b7e commit 2054c7f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/snowflakes.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function addClass(node, className) {
function removeClass(node, className) {
node.classList.remove(className);
}
const isAnimationEndSupported = 'onanimationend' in document;
const isAnimationEndSupported = typeof document !== 'undefined' && 'onanimationend' in document;

/**
* Get random number.
Expand Down
2 changes: 1 addition & 1 deletion dist/snowflakes.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
function removeClass(node, className) {
node.classList.remove(className);
}
var isAnimationEndSupported = 'onanimationend' in document;
var isAnimationEndSupported = typeof document !== 'undefined' && 'onanimationend' in document;

/**
* Get random number.
Expand Down
2 changes: 1 addition & 1 deletion dist/snowflakes.light.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
function removeClass(node, className) {
node.classList.remove(className);
}
var isAnimationEndSupported = 'onanimationend' in document;
var isAnimationEndSupported = typeof document !== 'undefined' && 'onanimationend' in document;

/**
* Get random number.
Expand Down
2 changes: 1 addition & 1 deletion dist/snowflakes.light.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2054c7f

Please sign in to comment.