@@ -43,14 +43,13 @@ function ServerHTML(props) {
4343 const { asyncComponentsState, helmet, nonce, reactAppString } = props ;
4444
4545 // Creates an inline script definition that is protected by the nonce.
46- const inlineScript = body => (
47- < script nonce = { nonce } type = "text/javascript" dangerouslySetInnerHTML = { { __html : body } } />
48- ) ;
46+ const inlineScript = body =>
47+ < script nonce = { nonce } type = "text/javascript" dangerouslySetInnerHTML = { { __html : body } } /> ;
4948
5049 const headerElements = removeNil ( [
50+ ...ifElse ( helmet ) ( ( ) => helmet . meta . toComponent ( ) , [ ] ) ,
5151 ...ifElse ( helmet ) ( ( ) => helmet . title . toComponent ( ) , [ ] ) ,
5252 ...ifElse ( helmet ) ( ( ) => helmet . base . toComponent ( ) , [ ] ) ,
53- ...ifElse ( helmet ) ( ( ) => helmet . meta . toComponent ( ) , [ ] ) ,
5453 ...ifElse ( helmet ) ( ( ) => helmet . link . toComponent ( ) , [ ] ) ,
5554 ifElse ( clientEntryAssets && clientEntryAssets . css ) ( ( ) => stylesheetTag ( clientEntryAssets . css ) ) ,
5655 ...ifElse ( helmet ) ( ( ) => helmet . style . toComponent ( ) , [ ] ) ,
@@ -83,7 +82,9 @@ function ServerHTML(props) {
8382 process . env . BUILD_FLAG_IS_DEV === 'true' && config ( 'bundles.client.devVendorDLL.enabled' ) ,
8483 ) ( ( ) =>
8584 scriptTag (
86- `${ config ( 'bundles.client.webPath' ) } ${ config ( 'bundles.client.devVendorDLL.name' ) } .js?t=${ Date . now ( ) } ` ,
85+ `${ config ( 'bundles.client.webPath' ) } ${ config (
86+ 'bundles.client.devVendorDLL.name' ,
87+ ) } .js?t=${ Date . now ( ) } `,
8788 ) ,
8889 ) ,
8990 ifElse ( clientEntryAssets && clientEntryAssets . js ) ( ( ) => scriptTag ( clientEntryAssets . js ) ) ,
@@ -93,10 +94,16 @@ function ServerHTML(props) {
9394 return (
9495 < HTML
9596 htmlAttributes = { ifElse ( helmet ) ( ( ) => helmet . htmlAttributes . toComponent ( ) , null ) }
96- headerElements = { headerElements . map ( ( x , idx ) => (
97- < KeyedComponent key = { idx } > { x } </ KeyedComponent >
98- ) ) }
99- bodyElements = { bodyElements . map ( ( x , idx ) => < KeyedComponent key = { idx } > { x } </ KeyedComponent > ) }
97+ headerElements = { headerElements . map ( ( x , idx ) =>
98+ ( < KeyedComponent key = { idx } >
99+ { x }
100+ </ KeyedComponent > ) ,
101+ ) }
102+ bodyElements = { bodyElements . map ( ( x , idx ) =>
103+ ( < KeyedComponent key = { idx } >
104+ { x }
105+ </ KeyedComponent > ) ,
106+ ) }
100107 appBodyString = { reactAppString }
101108 />
102109 ) ;
0 commit comments