Fixing open about:preferences#containers

This commit is contained in:
baku 2017-01-06 20:12:46 +01:00
parent 2c2e8ed602
commit 108673b492
2 changed files with 4 additions and 5 deletions

View file

@ -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;

View file

@ -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();
});
});