mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
(bug) <LinkedText/> should open files in new tab (nuxt router messes it up)
This commit is contained in:
parent
3488ec3b9f
commit
07e4d9781c
@ -42,9 +42,10 @@ export default {
|
|||||||
linkBuffer = `#${buffer}`;
|
linkBuffer = `#${buffer}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (linkBuffer.indexOf('https://') === 0 ||
|
if (linkBuffer.startsWith('https://') ||
|
||||||
linkBuffer.indexOf('http://') === 0 ||
|
linkBuffer.startsWith('http://') ||
|
||||||
linkBuffer.indexOf('mailto:') === 0
|
linkBuffer.startsWith('mailto:') ||
|
||||||
|
linkBuffer.endsWith('.pdf')
|
||||||
) {
|
) {
|
||||||
return h(
|
return h(
|
||||||
'a',
|
'a',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user