We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 546ee7a + 6fcb828 commit 037a804Copy full SHA for 037a804
src/js/background/assignManager.js
@@ -61,8 +61,9 @@ window.assignManager = {
61
this.area.get([siteStoreKey]).then((storageResponse) => {
62
if (storageResponse && siteStoreKey in storageResponse) {
63
resolve(storageResponse[siteStoreKey]);
64
+ } else {
65
+ resolve(null);
66
}
- resolve(null);
67
}).catch((e) => {
68
reject(e);
69
});
@@ -638,7 +639,7 @@ window.assignManager = {
638
639
},
640
641
async _maybeRemoveSiteIsolation(userContextId) {
- const assignments = await this.storageArea.getByContainer(userContextId);
642
+ const assignments = await this.storageArea.getAssignedSites(userContextId);
643
const hasAssignments = assignments && Object.keys(assignments).length > 0;
644
if (hasAssignments) {
645
return;
0 commit comments