From 6824eb21d41cbce44ae63266b8e9db2cbf164ed8 Mon Sep 17 00:00:00 2001 From: alteist Date: Mon, 22 Feb 2021 13:34:34 +0600 Subject: [PATCH] removed close tabs function, added toast message after saving --- background.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/background.js b/background.js index f3fc51ab7..edd3fda23 100644 --- a/background.js +++ b/background.js @@ -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) {