From 670b149d133a1016ff02783be87b9838ec6106f2 Mon Sep 17 00:00:00 2001 From: sienori Date: Thu, 7 Feb 2019 02:17:25 +0900 Subject: [PATCH] Fix not to display "null" when open popup --- simple-translate/popup/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();