Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(server/ssr): add <meta name="theme-color" />, Html -> HTML
Browse files Browse the repository at this point in the history
feat(server/ssr): add <meta name="theme-color" />, Html -> HTML
  • Loading branch information
Metnew committed Nov 4, 2017
1 parent 0a91b5f commit 8fa5ca8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/server/ssr/HtmlComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const DLLScripts =
<script src="/vendor.js"></script>
`

const HtmlComponent = ({
const HTMLComponent = ({
css,
asyncState,
initialState,
Expand Down Expand Up @@ -59,6 +59,7 @@ const HtmlComponent = ({
name="description"
content="Advanced universal React starter built with a scale in mind."
/>
<meta name="theme-color" content="#1b1e2f"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
<meta name="msapplication-tap-highlight" content="no" />
Expand All @@ -83,4 +84,4 @@ const HtmlComponent = ({
}
}

export default HtmlComponent
export default HTMLComponent
4 changes: 2 additions & 2 deletions src/server/ssr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {ServerStyleSheet, StyleSheetManager} from 'styled-components'
import {configureRootComponent, configureApp} from 'common/app'
import asyncBootstrapper from 'react-async-bootstrapper'
import {AsyncComponentProvider, createAsyncContext} from 'react-async-component'
import HtmlComponent from './HtmlComponent'
import HTMLComponent from './HTMLComponent'
// $FlowFixMe
import assets from 'webpack-assets'
// $FlowFixMe
Expand Down Expand Up @@ -67,7 +67,7 @@ export default async (req: express$Request, res: express$Response) => {
i18n
}

const {beforeAppTag, afterAppTag} = HtmlComponent(props)
const {beforeAppTag, afterAppTag} = HTMLComponent(props)
const responseStatusCode = noRequestURLMatch ? 404 : 200

res.writeHead(responseStatusCode, {
Expand Down

0 comments on commit 8fa5ca8

Please sign in to comment.