Merge pull request #2572 from Cimbali/main

Small fixes
This commit is contained in:
Andrea Marchesini 2024-09-26 15:13:51 +02:00 committed by GitHub
commit 037a804725
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,8 +61,9 @@ window.assignManager = {
this.area.get([siteStoreKey]).then((storageResponse) => {
if (storageResponse && siteStoreKey in storageResponse) {
resolve(storageResponse[siteStoreKey]);
}
} else {
resolve(null);
}
}).catch((e) => {
reject(e);
});
@ -638,7 +639,7 @@ window.assignManager = {
},
async _maybeRemoveSiteIsolation(userContextId) {
const assignments = await this.storageArea.getByContainer(userContextId);
const assignments = await this.storageArea.getAssignedSites(userContextId);
const hasAssignments = assignments && Object.keys(assignments).length > 0;
if (hasAssignments) {
return;