タイトルのようなことをするために下記コードを作成しました。しかし、関数も発火せずエラーも出ません。どうすればbackground.jsからpopup.jsにデータを送ることができますでしょうか。 background.js chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) { chrome.tabs.query({active: true, windowId: chrome.windows.WINDOW_ID_CURRENT}, function(result){ chrome.tabs.sendMessage(result.shift().id, { command: "get_dom" }, function(msg) { console.log("result message:",
