mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-03 22:49:47 +00:00 
			
		
		
		
	fix(type): annotate event for nav (#761)
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
		@@ -319,8 +319,8 @@ function renderGlobalGraph() {
 | 
			
		||||
  registerEscapeHandler(container, hideGlobalGraph)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
document.addEventListener("nav", async (e: unknown) => {
 | 
			
		||||
  const slug = (e as CustomEventMap["nav"]).detail.url
 | 
			
		||||
document.addEventListener("nav", async (e: CustomEventMap["nav"]) => {
 | 
			
		||||
  const slug = e.detail.url
 | 
			
		||||
  addToVisited(slug)
 | 
			
		||||
  await renderGraph("graph-container", slug)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user