Google Chrome Extension. The console.log doesn't work in the addListener, however works fine outside addListener. I have reinstalled. I have tried this on Windows and MacOS.
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
console.log("listen"); // this does not
alert("got here"); // this works
}
);