Skip to content

Commit fe7c801

Browse files
committed
Code formatting
No changes in this commit besides formatting
1 parent 31dbf17 commit fe7c801

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

javascripts/discourse/initializers/initialize-for-header-icon-links.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { dasherize } from "@ember/string";
55
export default {
66
name: "header-icon-links",
77
initialize() {
8-
withPluginApi("0.8.41", api => {
8+
withPluginApi("0.8.41", (api) => {
99
try {
1010
const splitLinks = settings.Header_links.split("|").filter(Boolean);
1111

12-
splitLinks.forEach(link => {
13-
const fragments = link.split(",").map(fragment => fragment.trim());
12+
splitLinks.forEach((link) => {
13+
const fragments = link.split(",").map((fragment) => fragment.trim());
1414
const title = fragments[0];
1515
const icon = iconNode(fragments[1].toLowerCase());
1616
const href = fragments[2];
@@ -19,17 +19,17 @@ export default {
1919
const target = fragments[4].toLowerCase() === "blank" ? "_blank" : "";
2020
const selector = `li.${className}.${viewClass}`;
2121

22-
api.decorateWidget("header-icons:before", helper => {
22+
api.decorateWidget("header-icons:before", (helper) => {
2323
return helper.h(selector, [
2424
helper.h(
2525
"a.icon.btn-flat",
2626
{
2727
href,
2828
title,
29-
target
29+
target,
3030
},
3131
icon
32-
)
32+
),
3333
]);
3434
});
3535
});
@@ -40,5 +40,5 @@ export default {
4040
);
4141
}
4242
});
43-
}
43+
},
4444
};

0 commit comments

Comments
 (0)