diff --git a/src/main.ts b/src/main.ts index 414153d..6690855 100644 --- a/src/main.ts +++ b/src/main.ts @@ -33,11 +33,11 @@ const splash = document.getElementById('splash'), svgs = import.meta.globEager('/assets/icons/*.svg'); if(splash) { - splash.ontransitionend = function(e) { + splash.addEventListener('transitionend', e => { if(e.target === splash && splash.style.opacity === '0') { splash.hidden = true; } - }; + }); } window.showSplash = function() {