I have this in my background.html:
chrome.management.onEnabled.addListener(function(ExtensionInfo info) {
alert('123');
});
which gives me an error: Uncaught SyntaxError: Unexpected identifier
If I remove info
from function(ExtensionInfo info)
, I don't get any errors, but it's not firing the alert. Where did I go wrong?
Also, I added "management"
inside permissions
in manifest.json, so that's not the problem.