File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
javascripts/discourse/initializers Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ import { dasherize } from "@ember/string";
5
5
export default {
6
6
name : "header-icon-links" ,
7
7
initialize ( ) {
8
- withPluginApi ( "0.8.41" , api => {
8
+ withPluginApi ( "0.8.41" , ( api ) => {
9
9
try {
10
10
const splitLinks = settings . Header_links . split ( "|" ) . filter ( Boolean ) ;
11
11
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 ( ) ) ;
14
14
const title = fragments [ 0 ] ;
15
15
const icon = iconNode ( fragments [ 1 ] . toLowerCase ( ) ) ;
16
16
const href = fragments [ 2 ] ;
@@ -19,17 +19,17 @@ export default {
19
19
const target = fragments [ 4 ] . toLowerCase ( ) === "blank" ? "_blank" : "" ;
20
20
const selector = `li.${ className } .${ viewClass } ` ;
21
21
22
- api . decorateWidget ( "header-icons:before" , helper => {
22
+ api . decorateWidget ( "header-icons:before" , ( helper ) => {
23
23
return helper . h ( selector , [
24
24
helper . h (
25
25
"a.icon.btn-flat" ,
26
26
{
27
27
href,
28
28
title,
29
- target
29
+ target,
30
30
} ,
31
31
icon
32
- )
32
+ ) ,
33
33
] ) ;
34
34
} ) ;
35
35
} ) ;
@@ -40,5 +40,5 @@ export default {
40
40
) ;
41
41
}
42
42
} ) ;
43
- }
43
+ } ,
44
44
} ;
You can’t perform that action at this time.
0 commit comments