Add data removal function
Yet to test its complete functionality
This commit is contained in:
		
							parent
							
								
									5fe2bdbad6
								
							
						
					
					
						commit
						79f358f0be
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		|  | @ -36,13 +36,21 @@ function events() { | |||
|       let filters = await import(chrome.runtime.getURL(`scripts/filters.js`)); | ||||
|       filters.update(); | ||||
|     }); | ||||
|   document | ||||
|     .querySelector(`[data-action="storage,clear"]`) | ||||
|     .addEventListener(`click`, async () => { | ||||
|       let storage = await import( | ||||
|         chrome.runtime.getURL(`scripts/secretariat.js`) | ||||
|       ); | ||||
|       storage.forget(`sites`); | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
| function main() { | ||||
|   let tab = windowman.prepare(); | ||||
|   windowman.fill(); | ||||
|   arrange(); | ||||
|   events(); | ||||
|   arrange(); | ||||
| } | ||||
| 
 | ||||
| main(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue