sample extension background.js code
chrome.runtime.onInstalled.addListener(function() { chrome.declarativeContent.onPageChanged.removeRules(undefined, function() { chrome.declarativeContent.onPageChanged.addRules([{ conditions: [
});
and I got I can not read the "onPageChanged" property from undefined in the console. No problem running the code, why is this happening?
javascript google-chrome google-chrome-extension
user3522749
source share