various path fixes for links to extensions, fix relative paths in links
This commit is contained in:
		
							parent
							
								
									2dc0ae279c
								
							
						
					
					
						commit
						0c199975f2
					
				
					 16 changed files with 77 additions and 52 deletions
				
			
		| 
						 | 
				
			
			@ -17,7 +17,7 @@ const isLocalUrl = (href: string) => {
 | 
			
		|||
      }
 | 
			
		||||
      return true
 | 
			
		||||
    }
 | 
			
		||||
  } catch (e) {}
 | 
			
		||||
  } catch (e) { }
 | 
			
		||||
  return false
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -50,6 +50,7 @@ async function navigate(url: URL, isBack: boolean = false) {
 | 
			
		|||
    history.pushState({}, "", url)
 | 
			
		||||
    window.scrollTo({ top: 0 })
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const html = p.parseFromString(contents, "text/html")
 | 
			
		||||
  let title = html.querySelector("title")?.textContent
 | 
			
		||||
  if (title) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue