I would like to store a setting of my extension - being changed by the popup:
chrome.storage.local.set({'extension-status': 'on'}, function() {
console.log('extension on status stored');
}
And receive update in my bakground page when this setting is changed:
chrome.storage.onChanged.addListener(function(changes, namespace) {
console.log("change recived!");
});
I see the message "extension on status stored" in the logs of the popup but do NOT see "change received" in the logs of the background page.
How can I react on the changes of this stored object?