Add a tab observer to show hidden tabs as there are many tab creation routes. Uses a queue to prevent multiple triggers. Fixes #765

This commit is contained in:
Jonathan Kingston
2017-08-28 16:40:14 -07:00
parent 3cc40344af
commit a762b5eca2
2 changed files with 17 additions and 23 deletions
@@ -52,12 +52,6 @@ const backgroundLogic = {
},
async openTab(options) {
const userContextId = ("userContextId" in options) ? options.userContextId : 0;
const cookieStoreId = backgroundLogic.cookieStoreId(userContextId);
// Unhide all hidden tabs
this.showTabs({
cookieStoreId
});
return this.openNewTab(options);
},