Update GoogleTranslateOption.plugin.js

This commit is contained in:
Mirco Wittrien 2019-01-11 21:02:55 +01:00
parent aa0926b852
commit 47ad911744
1 changed files with 0 additions and 1 deletions

View File

@ -591,7 +591,6 @@ class GoogleTranslateOption {
textarea.selectionEnd = text.length;
document.execCommand("insertText", false, "");
this.translateText(text, "message", (translation, input, output) => {
console.log(input, output);
translation = !translation ? text : (BDFDB.getData("sendOriginalMessage", this, "settings") ? text + "\n\n" + translation : translation);
textarea.focus();
document.execCommand("insertText", false, translation + " ");