chore: rename

This commit is contained in:
xjccc 2025-02-19 14:28:54 +08:00
parent 123c4b395d
commit d523252dff

View File

@ -104,7 +104,7 @@ export interface NuxtLinkOptions extends
* A white list of domain that should be not set noreferrer. * A white list of domain that should be not set noreferrer.
* @example ['nuxt.com', 'nuxtjs.org'] * @example ['nuxt.com', 'nuxtjs.org']
*/ */
whiteList?: string[] whitelist?: string[]
} }
/* @__NO_SIDE_EFFECTS__ */ /* @__NO_SIDE_EFFECTS__ */
@ -436,7 +436,7 @@ export function defineNuxtLink (options: NuxtLinkOptions) {
} }
} }
let defaultExternalRel = 'noopener noreferrer' let defaultExternalRel = 'noopener noreferrer'
if (isUrlInWhitelist(href.value, options.whiteList)) { if (isUrlInWhitelist(href.value, options.whitelist)) {
defaultExternalRel = 'noopener' defaultExternalRel = 'noopener'
} }
// Resolves `rel` // Resolves `rel`