mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	tweak online check
This commit is contained in:
		
							parent
							
								
									c3ea6adcf8
								
							
						
					
					
						commit
						b0ab67062b
					
				
					 2 changed files with 6 additions and 6 deletions
				
			
		|  | @ -1,6 +1,6 @@ | ||||||
| { | { | ||||||
|     "loading_screen_start": "Starting ArmCord…", |     "loading_screen_start": "Starting ArmCord…", | ||||||
|     "loading_screen_offline": "You appear to be offline. Please connect to the Internet and try again.", |     "loading_screen_offline": "You appear to be offline. Restart in ", | ||||||
|     "loading_screen_update": "A new version of ArmCord is available. Please update to the latest version.", |     "loading_screen_update": "A new version of ArmCord is available. Please update to the latest version.", | ||||||
|     "setup_question1": "Welcome to the ArmCord Setup", |     "setup_question1": "Welcome to the ArmCord Setup", | ||||||
|     "setup_offline": "You appear to be offline. Please connect to the internet and restart ArmCord.", |     "setup_offline": "You appear to be offline. Please connect to the internet and restart ArmCord.", | ||||||
|  |  | ||||||
|  | @ -28,11 +28,11 @@ | ||||||
|         async function loadLang() { |         async function loadLang() { | ||||||
|             const text = document.getElementById("text-splashscreen"); |             const text = document.getElementById("text-splashscreen"); | ||||||
|             if (window.navigator.onLine === false) { |             if (window.navigator.onLine === false) { | ||||||
|                 text.innerHTML = await internal.getLang("loading_screen_offline"); |                 for (let i = 0; i < 5; i++) { | ||||||
|                 document.getElementById("ignore").style.display = "block"; |                     await new Promise((r) => setTimeout(r, 1000)); | ||||||
|                 document.getElementById("ignore").onclick = () => { |                     text.innerHTML = (await internal.getLang("loading_screen_offline")) + (5 - i) + "s"; | ||||||
|                     window.internal.splashEnd(); |                 } | ||||||
|                 }; |                 window.internal.restart(); | ||||||
|             } else { |             } else { | ||||||
|                 text.innerHTML = await internal.getLang("loading_screen_start"); |                 text.innerHTML = await internal.getLang("loading_screen_start"); | ||||||
|                 if (window.internal.version === "3.3.0") { |                 if (window.internal.version === "3.3.0") { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue