From 20e49783ffe17fb3af48941184e53bdcd37dae94 Mon Sep 17 00:00:00 2001 From: sienori Date: Thu, 28 Dec 2017 03:19:45 +0900 Subject: [PATCH] Fixed undefined error in popup.js --- 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 2bd7c40..6583cea 100644 --- a/simple-translate/popup/popup.js +++ b/simple-translate/popup/popup.js @@ -68,7 +68,7 @@ function changeLang() { if (sourceWord !== "") { translate(); } - if (url !== "") showLink(); + if (typeof (url) != "undefined") showLink(); } //アクティブなタブを取得して渡す