fix: ensure 'night' is set before hydration

pull/36690/head
Oliver Eyton-Williams 2019-08-23 14:54:51 +02:00 committed by mrugesh
parent 5a38887af1
commit 18bee1bd59
1 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,12 @@ import PropTypes from 'prop-types';
export default class HTML extends React.Component {
render() {
return (
<html id='__fcc-html' {...this.props.htmlAttributes} lang='en'>
<html
className='night'
id='__fcc-html'
{...this.props.htmlAttributes}
lang='en'
>
<head>
<meta charSet='utf-8' />
<meta content='ie=edge' httpEquiv='x-ua-compatible' />