Fixing open about:preferences#containers
This commit is contained in:
parent
2c2e8ed602
commit
108673b492
2 changed files with 4 additions and 5 deletions
4
index.js
4
index.js
|
@ -156,10 +156,6 @@ function handleWebExtensionMessage(message, sender, sendReply) {
|
|||
case 'getIdentitiesState':
|
||||
sendReply(identitiesState);
|
||||
break;
|
||||
case 'openContainersPreferences':
|
||||
tabs.open('about:preferences#containers');
|
||||
sendReply({content: 'opened'});
|
||||
break;
|
||||
case 'openTab':
|
||||
sendReply(openTab(message));
|
||||
break;
|
||||
|
|
|
@ -136,7 +136,10 @@ browser.runtime.sendMessage({method: 'queryIdentities'}).then(identities=> {
|
|||
});
|
||||
|
||||
document.querySelector('#edit-containers-link').addEventListener('click', ()=> {
|
||||
browser.runtime.sendMessage({method: 'openContainersPreferences'}).then(()=> {
|
||||
browser.runtime.sendMessage({
|
||||
method: 'openTab',
|
||||
url: "about:preferences#containers"
|
||||
}).then(()=> {
|
||||
window.close();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue