Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Sep 1, 2024
1 parent e702327 commit 3860acc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions components/VtBotDebug.astro
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,9 @@ const active = import.meta.env.DEV || production;
}

function animationEnd(e: Event) {
if (e instanceof AnimationEvent) {
animations[transition(e)] &&
animations[transition(e)]![e.pseudoElement] &&
animations[transition(e)]![e.pseudoElement]![e.animationName] &&
(animations[transition(e)]![e.pseudoElement]![e.animationName]!.end = e);
}
e instanceof AnimationEvent &&
animations[transition(e)]?.[e.pseudoElement]?.[e.animationName] &&
(animations[transition(e)]![e.pseudoElement]![e.animationName]!.end = e);
}

/*
Expand Down

0 comments on commit 3860acc

Please sign in to comment.