Skip to content

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

Move the contributor comment to end of source

Gabe Kangas5c1e7d3d9a48
diff --git a/web/components/common/HtmlComment/HtmlComment.tsx b/web/components/common/HtmlComment/HtmlComment.tsx
index 4dc6cb5e36..060a7099f1 100644
--- a/web/components/common/HtmlComment/HtmlComment.tsx
+++ b/web/components/common/HtmlComment/HtmlComment.tsx
@@ -1,4 +1,4 @@
/* eslint-disable react/no-danger */
export const HtmlComment = ({ text }) => (
- <div dangerouslySetInnerHTML={{ __html: `<!-- ${text} -->` }} />
+ <span style={{ display: 'none' }} dangerouslySetInnerHTML={{ __html: `\n\n<!-- ${text} -->` }} />
);
diff --git a/web/pages/_document.tsx b/web/pages/_document.tsx
index 32e1e02dc8..dcb01466e4 100644
--- a/web/pages/_document.tsx
+++ b/web/pages/_document.tsx
@@ -26,11 +26,12 @@ class InlineStylesHead extends Head {
export default function Document() {
return (
<Html lang="en">
- <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." />
<InlineStylesHead />
<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>
);