mirror of
https://github.com/discourse/discourse-custom-header-links.git
synced 2025-05-08 01:19:15 +00:00
DEV: removes unwanted spaces
This commit is contained in:
parent
e5054ac549
commit
e84b0a5bb6
@ -6,13 +6,13 @@ customHeaderLinks.split("|").map(i => {
|
|||||||
linkText = seg[0],
|
linkText = seg[0],
|
||||||
linkTitle = seg[1],
|
linkTitle = seg[1],
|
||||||
linkHref = seg[2],
|
linkHref = seg[2],
|
||||||
deviceClass = " ." + seg[3],
|
deviceClass = "." + seg[3],
|
||||||
linkTarget = seg[4] === "self" ? "" : "_blank",
|
linkTarget = seg[4] === "self" ? "" : "_blank",
|
||||||
keepOnScrollClass = seg[5] === "keep" ? " .keep" : "";
|
keepOnScrollClass = seg[5] === "keep" ? ".keep" : "";
|
||||||
|
|
||||||
api.decorateWidget("header-buttons:before", helper => {
|
api.decorateWidget("header-buttons:before", helper => {
|
||||||
return helper.h(
|
return helper.h(
|
||||||
"li.headerLink." + deviceClass + keepOnScrollClass,
|
"li.headerLink" + deviceClass + keepOnScrollClass,
|
||||||
helper.h(
|
helper.h(
|
||||||
"a",
|
"a",
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user