Chrome extension sendRequest from async callback not working?
- by Eugene
Can't figure out what's wrong. onRequest not triggered on call from async callback method, the same request from content script works. The sample code below.
background.js
=============
...
makeAsyncRequest();
...
chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
switch (request.id) {
case…