update browser action in browsericon for manifest V3

This commit is contained in:
buzz-lightsnack-2007 2024-04-28 21:22:27 +08:00
parent aeb2f02e78
commit dcbac64f9f

View file

@ -45,7 +45,7 @@ class BrowserIcon {
@param {function} callback the function to be run
*/
static addActionListener(event, callback) {
chrome.browserAction[event].addListener(callback);
chrome.action[event].addListener(callback);
};
/*
@ -55,7 +55,7 @@ class BrowserIcon {
@param {function} callback the function to be removed
*/
static removeActionListener(event, callback) {
chrome.browserAction[event].removeListener(callback);
chrome.action[event].removeListener(callback);
};
/*