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:
+7
-9
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user