Fix splash screen on edge mobile
This commit is contained in:
parent
780cf3860d
commit
b184ed775b
@ -33,11 +33,11 @@ const splash = document.getElementById('splash'),
|
|||||||
svgs = import.meta.globEager('/assets/icons/*.svg');
|
svgs = import.meta.globEager('/assets/icons/*.svg');
|
||||||
|
|
||||||
if(splash) {
|
if(splash) {
|
||||||
splash.ontransitionend = function(e) {
|
splash.addEventListener('transitionend', e => {
|
||||||
if(e.target === splash && splash.style.opacity === '0') {
|
if(e.target === splash && splash.style.opacity === '0') {
|
||||||
splash.hidden = true;
|
splash.hidden = true;
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
window.showSplash = function() {
|
window.showSplash = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user