diff --git a/background.js b/background.js index 7dd4822..8f29616 100755 --- a/background.js +++ b/background.js @@ -72,12 +72,12 @@ getTagsTag(function(tag){ for (var i in selectTags) { if (tag == selectTags[i]) { - chrome.tabs.executeScript(null, {file: "content_script.js"}); + chrome.tabs.executeScript(targetTabId, {file: "content_script.js"}); } } }); } else { - chrome.tabs.executeScript(null, {file: "content_script.js"}); + chrome.tabs.executeScript(targetTabId, {file: "content_script.js"}); } } else { stop("選択されたマイリストにはこれ以上動画を追加できません");