removed close tabs function, added toast message after saving

This commit is contained in:
alteist 2021-02-22 13:34:34 +06:00
parent 9abee14beb
commit 6824eb21d4

View File

@ -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();
@ -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) {