parent
2960e5c5ce
commit
0bd166367c
1 changed files with 0 additions and 7 deletions
|
@ -128,16 +128,9 @@ const sync = {
|
||||||
await sync.checkForListenersMaybeAdd();
|
await sync.checkForListenersMaybeAdd();
|
||||||
|
|
||||||
async function updateSyncIdentities() {
|
async function updateSyncIdentities() {
|
||||||
const { syncExcludeRegExp } = await browser.storage.local.get("syncExcludeRegExp");
|
|
||||||
const excludeRegExp = new RegExp(syncExcludeRegExp, "i");
|
|
||||||
const identities = await browser.contextualIdentities.query({});
|
const identities = await browser.contextualIdentities.query({});
|
||||||
|
|
||||||
for (const identity of identities) {
|
for (const identity of identities) {
|
||||||
// skip excluded identities
|
|
||||||
if (identity.name.match(excludeRegExp)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
delete identity.colorCode;
|
delete identity.colorCode;
|
||||||
delete identity.iconUrl;
|
delete identity.iconUrl;
|
||||||
identity.macAddonUUID = await identityState.lookupMACaddonUUID(identity.cookieStoreId);
|
identity.macAddonUUID = await identityState.lookupMACaddonUUID(identity.cookieStoreId);
|
||||||
|
|
Loading…
Add table
Reference in a new issue