File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ export class Compiler {
241
241
}
242
242
href = router . toURL ( href , null , router . getCurrentPath ( ) )
243
243
} else {
244
- attrs += href . startsWith ( 'mailto:' ) ? '' : ` target="${ linkTarget } "`
244
+ attrs += href . indexOf ( 'mailto:' ) === 0 ? '' : ` target="${ linkTarget } "`
245
245
}
246
246
247
247
if ( config . target ) {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function escapeHtml(string) {
16
16
function getAllPaths ( router ) {
17
17
const paths = [ ]
18
18
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 => {
20
20
const href = node . href
21
21
const originHref = node . getAttribute ( 'href' )
22
22
const path = router . parse ( href ) . path
You can’t perform that action at this time.
0 commit comments