Hashtag opens in same tab

このコミットが含まれているのは:
Edijs 2019-02-06 11:34:21 -07:00
コミット a12397cf38
1個のファイルの変更8行の追加1行の削除

ファイルの表示

@ -282,8 +282,15 @@ const Status = {
this.$router.push(link)
return
}
} else {
if (target.hostname === window.location.hostname) {
// if the hashtag's target is current instance, open in same tab
this.$router.push(target.pathname)
} else {
// if it is different instance, open in a new tab
window.open(target.href, '_blank')
}
}
window.open(target.href, '_blank')
}
},
toggleReplying () {