fix: IE10 compatibility (#691)
* fix: IE10 compatibility * chore: use built-in helper fn
This commit is contained in:
parent
a72e7490c3
commit
4db8cd6abf
2 changed files with 2 additions and 2 deletions
|
|
@ -241,7 +241,7 @@ export class Compiler {
|
|||
}
|
||||
href = router.toURL(href, null, router.getCurrentPath())
|
||||
} else {
|
||||
attrs += href.startsWith('mailto:') ? '' : ` target="${linkTarget}"`
|
||||
attrs += href.indexOf('mailto:') === 0 ? '' : ` target="${linkTarget}"`
|
||||
}
|
||||
|
||||
if (config.target) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue