Greetings Chrome Developers! I am wondering how one can determine when a chrome.extension.sendRequest
call has not been successful. I attempted the following approach with no luck:
chrome.extension.sendRequest({ /* message stuff here */ }, function(req){
if(req == null || chrome.extension.lastError == null){
alert("No response. :(");
}
});
Unfortunately, the callback function is never triggered as expected. Is there a way to identify failed sendRequest calls?
Appreciate any insights you may have!