Fix linting

This commit is contained in:
Wolfgang Huß 2022-10-28 12:05:45 +02:00
parent 00c10cc1a7
commit f5f3fbeadb
2 changed files with 3 additions and 5 deletions

View File

@ -133,7 +133,8 @@ describe('PageFooter.vue', () => {
externalLink: {
url: 'https://ocelot.social/FAQ',
target: '_blank',
} }),
},
}),
}
wrapper = Wrapper()
wrapper.setData({ links })

View File

@ -36,10 +36,7 @@ export class PageParams {
thisComponent.$router.push(this.internalPage.pageRoute)
} else if (typeof window !== 'undefined') {
if (this.externalLink.target === '_blank') {
window.open(
this.externalLink.url,
this.externalLink.target,
)
window.open(this.externalLink.url, this.externalLink.target)
} else {
window.location.href = this.externalLink.url
}