So I'm working on a Chrome Extension to reload a page at regular intervals but I've found an error: Error handling response: TypeError: Error in invocation of pageAction.show(integer tabId, optional function callback): No matching signature.
.
manifest.json:
{
"name": "Reloader",
"version": "1.0.0",
"description": "Reloads pages.",
"permissions": ["tabs", "declarativeContent", "storage"],
"background": {
"scripts": ["background.js"],
"persistent": false
},
"page_action": {
"default_popup": "popup.html",
"default_icon": {
"16": "images/symbolsmall.png"
}
},
"manifest_version": 2
}
background.js:
chrome.tabs.onActivated.addListener(function(tabs) {
chrome.pageAction.show(tabs.id);
});
I did some console.logs and checked the docs for chrome.pageAction.show and the syntax checks out but the error persists. Any help would be much appreciated.