0

Remove htmlcomment as it gets stripped in build time

This commit is contained in:
Gabe Kangas 2023-02-10 15:57:21 -08:00
parent bd9905971c
commit 903cc41d58
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
2 changed files with 0 additions and 7 deletions

View File

@ -1,4 +0,0 @@
/* eslint-disable react/no-danger */
export const HtmlComment = ({ text }) => (
<span style={{ display: 'none' }} dangerouslySetInnerHTML={{ __html: `\n\n<!-- ${text} -->` }} />
);

View File

@ -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>
); );