Increased translation stability.
This commit is contained in:
		
							parent
							
								
									02e4624514
								
							
						
					
					
						commit
						8c6e6854e1
					
				@ -11,7 +11,7 @@ function checkFinished () {
 | 
			
		||||
            return res + i.innerText;
 | 
			
		||||
        }, '');
 | 
			
		||||
        st_wtp.translated (text);
 | 
			
		||||
    }, 500); // wait for gui fill
 | 
			
		||||
    }, 2000); // wait for gui fill
 | 
			
		||||
}
 | 
			
		||||
function onResourceLoad (url) {
 | 
			
		||||
    if (url.indexOf ('/api.microsofttranslator.com/') > -1) {
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,7 @@ function checkFinished () {
 | 
			
		||||
        }, '');
 | 
			
		||||
        st_wtp.translated (text);
 | 
			
		||||
        isTranslationFinished = isScheduled = false;
 | 
			
		||||
    }, 500); // wait for gui fill
 | 
			
		||||
    }, 2000); // wait for gui fill
 | 
			
		||||
}
 | 
			
		||||
function onResourceLoad (url) {
 | 
			
		||||
    if (url.indexOf ('/translate_a/single') > -1) {
 | 
			
		||||
 | 
			
		||||
@ -11,7 +11,7 @@ function checkFinished () {
 | 
			
		||||
            return res + i.innerText;
 | 
			
		||||
        }, '');
 | 
			
		||||
        st_wtp.translated (text);
 | 
			
		||||
    }, 500); // wait for gui fill
 | 
			
		||||
    }, 2000); // wait for gui fill
 | 
			
		||||
}
 | 
			
		||||
function onResourceLoad (url) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user