Skip to content
Snippets Groups Projects
Commit c23c97d3 authored by syuilo's avatar syuilo
Browse files

perf(frontend): splash screenのdomが消えない場合があるのを修正

https://github.com/misskey-dev/misskey/issues/10805
parent 614c9a0f
No related branches found
No related tags found
No related merge requests found
...@@ -60,12 +60,6 @@ export async function common(createVue: () => App<Element>) { ...@@ -60,12 +60,6 @@ export async function common(createVue: () => App<Element>) {
}); });
} }
const splash = document.getElementById('splash');
// 念のためnullチェック(HTMLが古い場合があるため(そのうち消す))
if (splash) splash.addEventListener('transitionend', () => {
splash.remove();
});
let isClientUpdated = false; let isClientUpdated = false;
//#region クライアントが更新されたかチェック //#region クライアントが更新されたかチェック
...@@ -289,5 +283,10 @@ function removeSplash() { ...@@ -289,5 +283,10 @@ function removeSplash() {
if (splash) { if (splash) {
splash.style.opacity = '0'; splash.style.opacity = '0';
splash.style.pointerEvents = 'none'; splash.style.pointerEvents = 'none';
// transitionendイベントが発火しない場合があるため
window.setTimeout(() => {
splash.remove();
}, 1000);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment