Here is the manifest file
{
"description": "",
"manifest_version": 2,
"name": "A",
"version": "0.2.0.2",
"permissions": [
"activeTab",
"contextMenus",
"tabs"
],
"icons": {
"48": "icons/48.png",
"96": "icons/96.png"
},
"background": {
"scripts" : ["background.js", "mouseWheel.js"]
}
}
The mouseWheel.js file is:
window.addEventListener('DOMMouseScroll', mouseWheel);
function mouseWheel(e) {
console.log("Scroll capture Working");
}
Whenever I scroll at any page, it should print Scroll capture Working. But there is no response.