Merge branch 'hideshowapi' of github.com:jonathanKingston/testpilot-containers into hideshowapi
This commit is contained in:
commit
4a04aa5f2e
1 changed files with 10 additions and 1 deletions
|
@ -13,7 +13,7 @@ function showContainer(containerId) {
|
||||||
browser.contextualIdentities.query({}).then(identites=> {
|
browser.contextualIdentities.query({}).then(identites=> {
|
||||||
const identitiesListElement = document.querySelector('.identities-list');
|
const identitiesListElement = document.querySelector('.identities-list');
|
||||||
|
|
||||||
identites.forEach(identity=> {
|
identites.forEach(identity => {
|
||||||
const identityRow = `
|
const identityRow = `
|
||||||
<tr data-identity-cookie-store-id="${identity.cookieStoreId}" >
|
<tr data-identity-cookie-store-id="${identity.cookieStoreId}" >
|
||||||
<td><div class="userContext-icon"
|
<td><div class="userContext-icon"
|
||||||
|
@ -57,3 +57,12 @@ document.querySelector('#edit-containers-link').addEventListener('click', ()=> {
|
||||||
window.close();
|
window.close();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function hideContainer(containerId) {
|
||||||
|
browser.contextualIdentities.hide(containerId);
|
||||||
|
}
|
||||||
|
|
||||||
|
function showContainer(containerId) {
|
||||||
|
browser.contextualIdentities.show(containerId);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue