Skip to content

Commit

Permalink
removed close tabs function, added toast message after saving
Browse files Browse the repository at this point in the history
  • Loading branch information
alteist committed Feb 22, 2021
1 parent 9abee14 commit 6824eb2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ async function getWindowTabs() {
return tabs;
}

async function closeWindowTabs(tabs) {
await browser.tabs.remove(tabs.map(tab=>{return tab.id}));
}

async function sendMessageToActiveTab(message) {
const activeTab = await getActiveTab();

Expand Down Expand Up @@ -306,7 +302,7 @@ async function saveTabs() {
return;
}

await closeWindowTabs(tabs);
toast(`${tabs.length} links have been saved to Trilium.`, resp.noteId);
}

browser.contextMenus.onClicked.addListener(async function(info, tab) {
Expand Down

0 comments on commit 6824eb2

Please sign in to comment.