Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Remove htmlcomment as it gets stripped in build time

Gabe Kangas28683bbf5cf3
diff --git a/web/components/common/HtmlComment/HtmlComment.tsx b/web/components/common/HtmlComment/HtmlComment.tsx
deleted file mode 100644
index 060a7099f1..0000000000
--- a/web/components/common/HtmlComment/HtmlComment.tsx
+++ /dev/null
@@ -1,4 +0,0 @@
-/* eslint-disable react/no-danger */
-export const HtmlComment = ({ text }) => (
- <span style={{ display: 'none' }} dangerouslySetInnerHTML={{ __html: `\n\n<!-- ${text} -->` }} />
-);
diff --git a/web/pages/_document.tsx b/web/pages/_document.tsx
index dcb01466e4..456ecd17b5 100644
--- a/web/pages/_document.tsx
+++ b/web/pages/_document.tsx
@@ -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() {
<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>
);