Метод получает response. Все ок.
chrome.runtime.onMessage.addListener(function(response, sender, sendResponse){
alert(response);
});
Как передать параметр response во вне метода?
chrome.runtime.onMessage.addListener(function(response, sender, sendResponse){
response = response;
});
alert(response); //тут response is not defined :(