mirror of
https://github.com/discourse/discourse-custom-header-links.git
synced 2025-03-09 14:18:22 +00:00
lint
This commit is contained in:
parent
3d0f32eee3
commit
7c534ed55a
@ -18,8 +18,9 @@ export default class CustomHeaderLinks extends Component {
|
||||
locale,
|
||||
] = item.split(",").map((s) => s.trim());
|
||||
|
||||
if (!linkText || (locale && document.documentElement.lang !== locale))
|
||||
if (!linkText || (locale && document.documentElement.lang !== locale)) {
|
||||
return result;
|
||||
}
|
||||
|
||||
const linkClass = `${dasherize(linkText)}-custom-header-links`; // legacy name
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user