mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Fix linting
This commit is contained in:
parent
00c10cc1a7
commit
f5f3fbeadb
@ -133,7 +133,8 @@ describe('PageFooter.vue', () => {
|
||||
externalLink: {
|
||||
url: 'https://ocelot.social/FAQ',
|
||||
target: '_blank',
|
||||
} }),
|
||||
},
|
||||
}),
|
||||
}
|
||||
wrapper = Wrapper()
|
||||
wrapper.setData({ links })
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user