fix: ensure 'night' is set before hydration

This commit is contained in:
Oliver Eyton-Williams
2019-08-23 14:54:51 +02:00
committed by mrugesh
parent 5a38887af1
commit 18bee1bd59

View File

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