Is chrome.extension.onRequest deprecated?
google-chrome, google-chrome-extension
Solution
Yes, `Request` was deprecated in favor of 'Message'. So instead of `onRequest` you should use `onMessage`, and `sendMessage` as a replacement for `sendRequest`.
Problem
I'm building a chrome extension and attempting to attach an event listener to this, but I'm not seeing anything in the console of the background page. ``` chrome.extension.onRequest.addListener(function(request, sender, sendResponse) { console.log('REFERRER', request.ref); }); ``` This code is in my main.js background page, all my other event listeners (chrome.tabs.onUpdated, chrome.extension.onMessage, etc) are all working fine though.