Remove htmlcomment as it gets stripped in build time
This commit is contained in:
parent
bd9905971c
commit
903cc41d58
@ -1,4 +0,0 @@
|
|||||||
/* eslint-disable react/no-danger */
|
|
||||||
export const HtmlComment = ({ text }) => (
|
|
||||||
<span style={{ display: 'none' }} dangerouslySetInnerHTML={{ __html: `\n\n<!-- ${text} -->` }} />
|
|
||||||
);
|
|
@ -2,7 +2,6 @@
|
|||||||
import { Html, Head, Main, NextScript } from 'next/document';
|
import { Html, Head, Main, NextScript } from 'next/document';
|
||||||
import { readFileSync } from 'fs';
|
import { readFileSync } from 'fs';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { HtmlComment } from '../components/common/HtmlComment/HtmlComment';
|
|
||||||
|
|
||||||
class InlineStylesHead extends Head {
|
class InlineStylesHead extends Head {
|
||||||
getCssLinks: Head['getCssLinks'] = ({ allFiles }) => {
|
getCssLinks: Head['getCssLinks'] = ({ allFiles }) => {
|
||||||
@ -30,8 +29,6 @@ export default function Document() {
|
|||||||
<body>
|
<body>
|
||||||
<Main />
|
<Main />
|
||||||
<NextScript />
|
<NextScript />
|
||||||
{'\n\n'}
|
|
||||||
<HtmlComment text="If you're reading this we'd love your help with Owncast! Visit https://owncast.online/help to see how you can contribute to make independent, open source live streaming better with your help." />
|
|
||||||
</body>
|
</body>
|
||||||
</Html>
|
</Html>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user