Skip to content

Commit

Permalink
fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Aug 10, 2020
1 parent 68cc922 commit 391eee7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/BigPicture.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,9 @@ function open(err) {
changeCSS(container, `opacity:1;pointer-events:auto`)

// set animationEnd callback to run after animation ends (cleared if container closed)
animationEnd = setTimeout(animationEnd, 410)
if (animationEnd) {
animationEnd = setTimeout(animationEnd, 410)
}

isOpen = true

Expand Down

0 comments on commit 391eee7

Please sign in to comment.