Revert "Excluding containers from sync with RegExp"

8e7d9f7574
This commit is contained in:
BPower0036 2022-12-05 08:56:22 +00:00 committed by GitHub
parent 2960e5c5ce
commit 0bd166367c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,16 +128,9 @@ const sync = {
await sync.checkForListenersMaybeAdd();
async function updateSyncIdentities() {
const { syncExcludeRegExp } = await browser.storage.local.get("syncExcludeRegExp");
const excludeRegExp = new RegExp(syncExcludeRegExp, "i");
const identities = await browser.contextualIdentities.query({});
for (const identity of identities) {
// skip excluded identities
if (identity.name.match(excludeRegExp)) {
continue;
}
delete identity.colorCode;
delete identity.iconUrl;
identity.macAddonUUID = await identityState.lookupMACaddonUUID(identity.cookieStoreId);