ensure new permissions are saved before releasing mutex.
This commit is contained in:
@@ -188,13 +188,13 @@ async function handleContentScriptMessage({type, params, host}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handlePromptMessage({id, host, type, accept, conditions}, sender) {
|
async function handlePromptMessage({host, type, accept, conditions}, sender) {
|
||||||
// return response
|
// return response
|
||||||
openPrompt?.resolve?.(accept)
|
openPrompt?.resolve?.(accept)
|
||||||
|
|
||||||
// update policies
|
// update policies
|
||||||
if (conditions) {
|
if (conditions) {
|
||||||
updatePermission(host, type, accept, conditions)
|
await updatePermission(host, type, accept, conditions)
|
||||||
}
|
}
|
||||||
|
|
||||||
// cleanup this
|
// cleanup this
|
||||||
|
|||||||
Reference in New Issue
Block a user