mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			436 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			436 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const becca = require('../../src/becca/becca');
 | |
| const beccaLoader = require('../../src/becca/becca_loader');
 | |
| const cls = require('../../src/services/cls');
 | |
| 
 | |
| module.exports = () => {
 | |
|     cls.init(() => {
 | |
|         beccaLoader.load();
 | |
| 
 | |
|         for (const note of Object.values(becca.notes)) {
 | |
|             if (note.hasLabel('calendarRoot')) {
 | |
|                 note.addLabel('excludeFromTreeMap', "", true);
 | |
|             }
 | |
|         }
 | |
|     });
 | |
| };
 |