Browse Source

Remove htmlcomment as it gets stripped in build time

pull/2709/head
Gabe Kangas 2 years ago
parent
commit
903cc41d58
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 4
      web/components/common/HtmlComment/HtmlComment.tsx
  2. 3
      web/pages/_document.tsx

4
web/components/common/HtmlComment/HtmlComment.tsx

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

3
web/pages/_document.tsx

@ -2,7 +2,6 @@ @@ -2,7 +2,6 @@
import { Html, Head, Main, NextScript } from 'next/document';
import { readFileSync } from 'fs';
import { join } from 'path';
import { HtmlComment } from '../components/common/HtmlComment/HtmlComment';
class InlineStylesHead extends Head {
getCssLinks: Head['getCssLinks'] = ({ allFiles }) => {
@ -30,8 +29,6 @@ export default function Document() { @@ -30,8 +29,6 @@ export default function Document() {
<body>
<Main />
<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>
</Html>
);

Loading…
Cancel
Save