Chrome messaging: chrome.runtime.sendMessage not working on the newest release 49

Viewed 534

I have a Chrome extension that works perfectly fine on version 48 but for some reason, isn't working on 49 and am not able to find anything on their release/change log.

The part that isn't working is the message passing.

Backgound page:

chrome.runtime.onMessage.addListener(function(msg, sender){
console.log(msg);
});

chrome.runtime.sendMessage({info:"this is a test"});

This will not output anything on version 49, but will on version 48.

How do I fix this?

1 Answers
Related