enhance(client): アップデートが利用可能な場合エラー表示およびダイアログ表示しないように
This commit is contained in:
		
							parent
							
								
									5a11844eff
								
							
						
					
					
						commit
						5bf4f569e4
					
				
					 2 changed files with 3 additions and 6 deletions
				
			
		|  | @ -48,8 +48,8 @@ | |||
| 		} else if (localeOutdated) { | ||||
| 			// nop
 | ||||
| 		} else { | ||||
| 			await checkUpdate(); | ||||
| 			renderError('LOCALE_FETCH_FAILED'); | ||||
| 			checkUpdate(); | ||||
| 			return; | ||||
| 		} | ||||
| 	} | ||||
|  | @ -65,8 +65,8 @@ | |||
| 	script.setAttribute('async', 'true'); | ||||
| 	script.setAttribute('defer', 'true'); | ||||
| 	script.addEventListener('error', async () => { | ||||
| 		await checkUpdate(); | ||||
| 		renderError('APP_FETCH_FAILED'); | ||||
| 		checkUpdate(); | ||||
| 	}); | ||||
| 	document.head.appendChild(script); | ||||
| 	//#endregion
 | ||||
|  | @ -142,10 +142,6 @@ | |||
| 
 | ||||
| 		if (meta.version != v) { | ||||
| 			localStorage.setItem('v', meta.version); | ||||
| 			alert( | ||||
| 				'Misskeyの新しいバージョンがあります。ページを再度読み込みします。' + | ||||
| 				'\n\n' + | ||||
| 				'New version of Misskey available. The page will be reloaded.'); | ||||
| 			refresh(); | ||||
| 		} | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue