From 263d01dc41bbfbb5886355ffeeec6d248bc71372 Mon Sep 17 00:00:00 2001 From: sienori Date: Sun, 3 Jun 2018 13:48:15 +0900 Subject: [PATCH] Fix space --- simple-translate/simple-translate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple-translate/simple-translate.js b/simple-translate/simple-translate.js index 584a08b..f5773d3 100644 --- a/simple-translate/simple-translate.js +++ b/simple-translate/simple-translate.js @@ -55,8 +55,8 @@ async function Select(e) { //選択テキストの言語をチェックして返す async function checkLang(sourceWord, sourceLang, targetLang) { if (!S.get().ifCheckLang) return true; //設定がオフならtrue - sourceWord=sourceWord.substr(0, 100); //先頭100字で言語を判定 - + sourceWord = sourceWord.substr(0, 100); //先頭100字で言語を判定 + const resultData = await T.translate(sourceWord, sourceLang, targetLang); const needTranslate = (S.get().targetLang != resultData.sourceLanguage) && (resultData.percentage > 0); return needTranslate; //ターゲットとソースの言語が不一致ならtrue