Skip to content

Commit

Permalink
Merge pull request #2572 from Cimbali/main
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
bakulf committed Sep 26, 2024
2 parents 546ee7a + 6fcb828 commit 037a804
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/background/assignManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ window.assignManager = {
this.area.get([siteStoreKey]).then((storageResponse) => {
if (storageResponse && siteStoreKey in storageResponse) {
resolve(storageResponse[siteStoreKey]);
} else {
resolve(null);
}
resolve(null);
}).catch((e) => {
reject(e);
});
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 037a804

Please sign in to comment.