所以我正在使用 Chrome 擴展程序定期重新加載頁面,但我發(fā)現(xiàn)了一個錯誤:Error handling response: TypeError: Error in invocation of pageAction.show(integer tabId, optional function callback): No matching signature..清單.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}背景.js:chrome.tabs.onActivated.addListener(function(tabs) { chrome.pageAction.show(tabs.id);});我做了一些 console.logs 并檢查了 chrome.pageAction.show 的文檔并檢查了語法,但錯誤仍然存在。任何幫助將不勝感激。
Chrome 擴展程序錯誤:調(diào)用 pageAction.show 時出錯
動漫人物
2021-08-20 16:45:47