diff --git a/src/scripts/lib/util.js b/src/scripts/lib/util.js index 5af0876..b5d1ad1 100644 --- a/src/scripts/lib/util.js +++ b/src/scripts/lib/util.js @@ -79,7 +79,8 @@ export const startGabAnimation = () => { gab_animation.setAttribute('data-state', 'start') gab_animation__end_block.addEventListener('animationend', e => { - if(e.animationName === 'gab-animation__close') { + if(e.animationName === 'gab-animation__close' + || e.animationName === 'gab-animation__close__sp') { root.removeChild(gab_animation) } })