mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-21 11:35:41 -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}`;
|
||||
}
|
||||
|
||||
if (linkBuffer.indexOf('https://') === 0 ||
|
||||
linkBuffer.indexOf('http://') === 0 ||
|
||||
linkBuffer.indexOf('mailto:') === 0
|
||||
if (linkBuffer.startsWith('https://') ||
|
||||
linkBuffer.startsWith('http://') ||
|
||||
linkBuffer.startsWith('mailto:') ||
|
||||
linkBuffer.endsWith('.pdf')
|
||||
) {
|
||||
return h(
|
||||
'a',
|
||||
|
Loading…
x
Reference in New Issue
Block a user