only delete permissions explicitly clicked on.
This commit is contained in:
@@ -88,6 +88,6 @@ export async function updatePermission(host, type, accept, conditions) {
|
|||||||
|
|
||||||
export async function removePermissions(host, accept, type) {
|
export async function removePermissions(host, accept, type) {
|
||||||
let {policies = {}} = await browser.storage.local.get('policies')
|
let {policies = {}} = await browser.storage.local.get('policies')
|
||||||
delete policies[host]
|
delete policies[host]?.[accept]?.[type]
|
||||||
browser.storage.local.set({policies})
|
browser.storage.local.set({policies})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user