From b184ed775bb6b0b8b47232e6dc1dac5d223d35e9 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Mon, 24 May 2021 20:17:27 +0100 Subject: [PATCH] Fix splash screen on edge mobile --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {