Cleaning up existing methods

This commit is contained in:
baku
2017-01-06 20:05:33 +01:00
parent a6f9175224
commit 2c2e8ed602
2 changed files with 5 additions and 75 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ function hideContainerTabs(userContextId) {
tabUrlsToSave.push(tab.url);
});
browser.runtime.sendMessage({
method: 'hideTab',
method: 'hideTabs',
userContextId: userContextId,
tabUrlsToSave: tabUrlsToSave
}).then(()=> {
@@ -33,7 +33,7 @@ function showContainerTabs(userContextId) {
const hideorshowIcon = document.querySelector(`#uci-${userContextId}-hideorshow-icon`);
browser.runtime.sendMessage({
method: 'showTab',
method: 'showTabs',
userContextId: userContextId
}).then(hiddenTabUrls=> {
hiddenTabUrls.forEach(url=> {