Simplify new tab creation in the popup fixing issues. Fixes #781

This commit is contained in:
Jonathan Kingston
2017-09-01 12:27:40 -07:00
parent 65be77665a
commit df7d7f9c38
3 changed files with 2 additions and 26 deletions
+2 -6
View File
@@ -602,12 +602,8 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|| e.target.parentNode.matches(".open-newtab")
|| e.type === "keydown") {
try {
await browser.runtime.sendMessage({
method: "openTab",
message: {
userContextId: Logic.userContextId(identity.cookieStoreId),
source: "pop-up"
}
browser.tabs.create({
cookieStoreId: identity.cookieStoreId
});
window.close();
} catch (e) {