more descriptive _containerTabs method name
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user