code cleanup

This commit is contained in:
alteist
2021-02-22 15:30:12 +06:00
parent 73d48d8dd5
commit b42fd1a6c5
2 changed files with 12 additions and 14 deletions

View File

@@ -303,11 +303,9 @@ async function saveTabs() {
return;
}
toast(
`${tabs.length} links have been saved to Trilium.`,
resp.noteId,
tabs.map(tab=>{return tab.id})
);
const tabIds = tabs.map(tab=>{return tab.id});
toast(`${tabs.length} links have been saved to Trilium.`, resp.noteId, tabIds);
}
browser.contextMenus.onClicked.addListener(async function(info, tab) {