Update secretariat import method for global data access
This commit is contained in:
		
							parent
							
								
									3fa346a7af
								
							
						
					
					
						commit
						9ade82ccbe
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -5,7 +5,7 @@ | ||||||
| // Import modules.
 | // Import modules.
 | ||||||
| //import { windowman } from "../windowman.js";
 | //import { windowman } from "../windowman.js";
 | ||||||
| 
 | 
 | ||||||
| import {read, forget} from "/scripts/secretariat.js"; | import {global} from "/scripts/secretariat.js"; | ||||||
| import Page from "/scripts/pages/page.js"; | import Page from "/scripts/pages/page.js"; | ||||||
| import texts from "/scripts/mapping/read.js"; | import texts from "/scripts/mapping/read.js"; | ||||||
| 
 | 
 | ||||||
|  | @ -90,8 +90,8 @@ class Page_Settings extends Page { | ||||||
| 			document | 			document | ||||||
| 				.querySelector(`[data-action="storage,clear"]`) | 				.querySelector(`[data-action="storage,clear"]`) | ||||||
| 				.addEventListener(`click`, async () => { | 				.addEventListener(`click`, async () => { | ||||||
| 					await forget(`sites`); | 					await global.forget(`sites`); | ||||||
| 					console.log(await read(null, 1), await read(null, -1)); | 					console.log(await global.read(null, 1), await global.read(null, -1)); | ||||||
| 				}); | 				}); | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue