diff --git a/index.js b/index.js index 6f71099..be2bb05 100644 --- a/index.js +++ b/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; diff --git a/webextension/js/popup.js b/webextension/js/popup.js index 0e74484..b987c53 100644 --- a/webextension/js/popup.js +++ b/webextension/js/popup.js @@ -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(); }); });