add function similar to read.js to read image

This commit is contained in:
buzz-lightsnack-2007 2024-04-24 16:22:03 +08:00
parent 795c97d800
commit 2aa5a00559

View file

@ -0,0 +1,11 @@
class BrowserIcon {
/* Change the extension icon.
@param {string} path The path to the icon.
*/
static set(path) {
chrome.browserAction.setIcon({"path": path});
};
};
export {BrowserIcon as default};