working on info panel

This commit is contained in:
Kendall Werts
2020-02-18 15:11:24 -06:00
parent fe62ee3abb
commit 9d151f0033
6 changed files with 31 additions and 31 deletions
+20
View File
@@ -99,6 +99,26 @@ const Utils = {
tabIndex,
active
});
},
async alwaysOpenInContainer(identity) {
const currentTab = await this.currentTab();
const assignedUserContextId = this.userContextId(identity.cookieStoreId);
Utils.setOrRemoveAssignment(
currentTab.id,
currentTab.url,
assignedUserContextId,
false
);
if (currentTab.cookieStoreId !== identity.cookieStoreId) {
Utils.reloadInContainer(
currentTab.url,
false,
assignedUserContextId,
currentTab.index + 1,
currentTab.active
);
}
}
};