Removed options from new container menu. Tweaked new container menu to remove

dupes from opening it twice.

Added focus highlighting for keyboard navigation
This commit is contained in:
Kendall Werts
2020-02-28 12:14:48 -06:00
parent ef66bee929
commit 7f91096311
5 changed files with 25 additions and 26 deletions
+7 -9
View File
@@ -102,7 +102,7 @@ const Utils = {
},
async alwaysOpenInContainer(identity) {
let currentTab = await this.currentTab();
const currentTab = await this.currentTab();
const assignedUserContextId = this.userContextId(identity.cookieStoreId);
if (currentTab.cookieStoreId !== identity.cookieStoreId) {
return await browser.runtime.sendMessage({
@@ -113,15 +113,13 @@ const Utils = {
tabIndex: currentTab.index +1,
active:currentTab.active
});
} else {
currentTab = await this.currentTab();
Utils.setOrRemoveAssignment(
currentTab.id,
currentTab.url,
assignedUserContextId,
false
);
}
await Utils.setOrRemoveAssignment(
currentTab.id,
currentTab.url,
assignedUserContextId,
false
);
}
};