update browser action in browsericon for manifest V3
This commit is contained in:
parent
aeb2f02e78
commit
dcbac64f9f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue