Update icons

This commit is contained in:
2022-06-18 01:29:19 +02:00
parent 8990e25a72
commit 923787bedb
9 changed files with 170 additions and 2 deletions

View File

@ -34,10 +34,19 @@ export async function getAllDisabled(): Promise<boolean> {
export async function enableAll() {
await storageSet('all', false)
await chrome.browserAction.setIcon({
path: null
})
}
export async function disableAll() {
await storageSet('all', true)
await chrome.browserAction.setIcon({
path: {
48: chrome.runtime.getURL('icons/disabled_48.png'),
128: chrome.runtime.getURL('icons/disabled_128.png')
}
})
}
export async function enable(match: Match) {