mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	perf(frontend): splash screenのdomが消えない場合があるのを修正
https://github.com/misskey-dev/misskey/issues/10805
This commit is contained in:
		
							parent
							
								
									614c9a0fc6
								
							
						
					
					
						commit
						c23c97d303
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
 | 
			
		||||
	//#region クライアントが更新されたかチェック
 | 
			
		||||
| 
						 | 
				
			
			@ -289,5 +283,10 @@ function removeSplash() {
 | 
			
		|||
	if (splash) {
 | 
			
		||||
		splash.style.opacity = '0';
 | 
			
		||||
		splash.style.pointerEvents = 'none';
 | 
			
		||||
 | 
			
		||||
		// transitionendイベントが発火しない場合があるため
 | 
			
		||||
		window.setTimeout(() => {
 | 
			
		||||
			splash.remove();
 | 
			
		||||
		}, 1000);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue