made links in user bio always open in new tabs

This commit is contained in:
Henry Jameson 2018-12-04 11:38:00 +03:00
parent 480f617c09
commit 6d6d1102d9
2 changed files with 9 additions and 1 deletions

View file

@ -98,6 +98,14 @@ export default {
const store = this.$store
store.commit('setProfileView', { v })
}
},
linkClicked ({target}) {
if (target.tagName === 'SPAN') {
target = target.parentNode
}
if (target.tagName === 'A') {
window.open(target.href, '_blank')
}
}
}
}