mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	removed close tabs function, added toast message after saving
This commit is contained in:
		
							parent
							
								
									9abee14beb
								
							
						
					
					
						commit
						6824eb21d4
					
				@ -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) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user