prettier
This commit is contained in:
parent
3b99de4972
commit
1f99dbf0fa
|
@ -24,8 +24,15 @@ export default {
|
|||
.split("|")
|
||||
.filter(Boolean)
|
||||
.map((customHeaderLinksArray) => {
|
||||
const [linkText, linkTitle, linkHref, device, target, keepOnScroll, locale] =
|
||||
customHeaderLinksArray
|
||||
const [
|
||||
linkText,
|
||||
linkTitle,
|
||||
linkHref,
|
||||
device,
|
||||
target,
|
||||
keepOnScroll,
|
||||
locale,
|
||||
] = customHeaderLinksArray
|
||||
.split(",")
|
||||
.filter(Boolean)
|
||||
.map((x) => x.trim());
|
||||
|
@ -47,10 +54,13 @@ export default {
|
|||
anchorAttributes.target = linkTarget;
|
||||
}
|
||||
|
||||
if (locale !== ""
|
||||
&& document.documentElement.lang
|
||||
&& document.documentElement.lang !== locale
|
||||
) { return ; }
|
||||
if (
|
||||
locale !== "" &&
|
||||
document.documentElement.lang &&
|
||||
document.documentElement.lang !== locale
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
headerLinks.push(
|
||||
h(
|
||||
|
|
Loading…
Reference in New Issue