Update bing script

This commit is contained in:
Gres 2020-03-23 20:50:17 +03:00
parent eb796471cf
commit 2ae8b4e4a7
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ function checkFinished () {
if (!isPageLoaded || !isTranslationFinished || isScheduled) return; if (!isPageLoaded || !isTranslationFinished || isScheduled) return;
isScheduled = true; isScheduled = true;
setTimeout(function () { setTimeout(function () {
var text = document.querySelector ('#tta_output').value; var text = document.querySelector ('#tta_output_ta').value;
console.log (text); console.log (text);
st_wtp.translated (text); st_wtp.translated (text);
isTranslationFinished = isScheduled = false; isTranslationFinished = isScheduled = false;

View File

@ -13,7 +13,7 @@
"path_linux": "ScreenTranslator" "path_linux": "ScreenTranslator"
}, },
"Bing translator": { "Bing translator": {
"version": 5, "version": 6,
"url": "https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/bing.js", "url": "https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/bing.js",
"path": "translators/bing.js" "path": "translators/bing.js"
}, },