more descriptive _containerTabs method name
This commit is contained in:
parent
f2ddc7fd84
commit
337dee2061
1 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ const Logic = {
|
||||||
}).catch((e) => {throw e;});
|
}).catch((e) => {throw e;});
|
||||||
},
|
},
|
||||||
|
|
||||||
_containers(userContextId) {
|
_containerTabs(userContextId) {
|
||||||
return browser.tabs.query({
|
return browser.tabs.query({
|
||||||
cookieStoreId: Logic.cookieStoreId(userContextId)
|
cookieStoreId: Logic.cookieStoreId(userContextId)
|
||||||
});
|
});
|
||||||
|
@ -180,7 +180,7 @@ const Logic = {
|
||||||
userContextId
|
userContextId
|
||||||
});
|
});
|
||||||
|
|
||||||
const removeTabsPromise = Logic._containers(userContextId).then((tabs) => {
|
const removeTabsPromise = Logic._containerTabs(userContextId).then((tabs) => {
|
||||||
const tabIds = tabs.map((tab) => tab.id);
|
const tabIds = tabs.map((tab) => tab.id);
|
||||||
return browser.tabs.remove(tabIds);
|
return browser.tabs.remove(tabIds);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue