diff --git a/simple-translate/popup/popup.js b/simple-translate/popup/popup.js index 7b1592a..e29fb40 100644 --- a/simple-translate/popup/popup.js +++ b/simple-translate/popup/popup.js @@ -89,7 +89,7 @@ function getSelectionWord(tabs) { message: "fromPopup" }) .then(response => { - sourceWord = response.word; + sourceWord = response.word || ""; url = response.url; refleshSource(); showLink();