Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
created: function () {
if (!isAnchorLink(this.href) && isRelativeUrl(this.href)) {
this.isNuxtLink = this.rplOptions.nuxt
}
// Set link target for non nuxt-links
if (this.target.length === 0) {
if (isExternalUrl(this.href, this.rplOptions.hostname)) {
this.linkTarget = '_blank'
}
} else {
this.linkTarget = this.target
}
}
}