Skip to content

Commit 5373eca

Browse files
authored
Update link.js
1 parent 2f5eb97 commit 5373eca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/render/compiler/link.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ export const linkCompiler = ({
3030
href = router.toURL(href, null, router.getCurrentPath());
3131

3232
if (config.target) {
33-
attrs.push(
34-
href.indexOf('mailto:') === 0 ? '' : `target="${linkTarget}"`
35-
);
33+
href.indexOf('mailto:') !== 0 && attrs.push(`target="${linkTarget}"`);
3634
}
3735
} else {
3836
if (!isAbsolutePath(href) && href.slice(0, 2) === './') {

0 commit comments

Comments
 (0)