feat #303: ask for browsing data permission dynamically

This commit is contained in:
Rafee
2024-08-27 16:53:11 -04:00
parent 2cd38299e2
commit c644a60e46
5 changed files with 27 additions and 16 deletions
+1 -1
View File
@@ -572,7 +572,7 @@ window.assignManager = {
},
async _resetCookiesForSite(hostname, cookieStoreId) {
const hostNameTruncated = hostname.replace(/^www\./, ''); // Remove "www." from the hostname
const hostNameTruncated = hostname.replace(/^www\./, ""); // Remove "www." from the hostname
await browser.browsingData.removeCookies({
cookieStoreId: cookieStoreId,
hostnames: [hostNameTruncated] // This does not remove cookies from associated domains. To remove all cookies, we have a container storage removal option.