I'm trying to create an extension that logs all network events. This is the code:
Manifest.json:
{
"name": "My extension",
"version" : "1.0",
"background": {
"scripts": ["background.js"],
"persistent": true
},
"devtools_page": "devtools.html",
"browser_action": {
"default_title": "Get it",
"default_icon" : "icon.png"
},
"manifest_version": 2
}
background.js:
chrome.devtools.network.onRequestFinished.addListener(function(request) {});
What's the problem? I tried a lot of things, it doesn't seem like any scripts that I link in devtools.html is getting picked up at all. No logs, no nothing. Only the background.js is doing something, and it doesn't seem to support chrome.devtools ?