feat: add more default attributes to the rel attribute in link mode
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dominik Pschenitschni 2022-02-06 22:34:25 +01:00
parent cb381e2ce9
commit 161ae6ec64
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 2 additions and 2 deletions

View File

@ -69,10 +69,10 @@ watchEffect(() => {
}
// if there is a href we assume the user wants an external link via a link element
// we also set the attribute rel to "noopener" but make it possible to overwrite this by the user.
// we also set a predefined value for the attribute rel, but make it possible to overwrite this by the user.
if ('href' in attrs) {
nodeName = 'a'
bindings = {rel: 'noopener'}
bindings = {rel: 'noreferrer noopener nofollow'}
}
componentNodeName.value = nodeName