File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ export class Compiler {
241241 }
242242 href = router . toURL ( href , null , router . getCurrentPath ( ) )
243243 } else {
244- attrs += href . startsWith ( 'mailto:' ) ? '' : ` target="${ linkTarget } "`
244+ attrs += href . indexOf ( 'mailto:' ) === 0 ? '' : ` target="${ linkTarget } "`
245245 }
246246
247247 if ( config . target ) {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function escapeHtml(string) {
1616function getAllPaths ( router ) {
1717 const paths = [ ]
1818
19- document . querySelectorAll ( '.sidebar-nav a:not(.section-link):not([data-nosearch])' ) . forEach ( node => {
19+ Docsify . dom . findAll ( '.sidebar-nav a:not(.section-link):not([data-nosearch])' ) . forEach ( node => {
2020 const href = node . href
2121 const originHref = node . getAttribute ( 'href' )
2222 const path = router . parse ( href ) . path
You can’t perform that action at this time.
0 commit comments