Fix splash screen on edge mobile

This commit is contained in:
James Lyne 2021-05-24 20:17:27 +01:00
parent 780cf3860d
commit b184ed775b

View File

@ -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() {