mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix server rendered title tag. Closes #2251
This commit is contained in:
parent
c6a67a1c66
commit
a0093fb0c9
@ -18,7 +18,7 @@ export const TitleNotifier: FC = () => {
|
|||||||
|
|
||||||
const onBlur = () => {
|
const onBlur = () => {
|
||||||
backgrounded = true;
|
backgrounded = true;
|
||||||
defaultTitle = document.title;
|
defaultTitle = window.document.title;
|
||||||
};
|
};
|
||||||
|
|
||||||
const onFocus = () => {
|
const onFocus = () => {
|
||||||
|
@ -67,9 +67,7 @@ export const Main: FC = () => {
|
|||||||
<meta name="msapplication-TileImage" content="/img/favicon/ms-icon-144x144.png" />
|
<meta name="msapplication-TileImage" content="/img/favicon/ms-icon-144x144.png" />
|
||||||
<meta name="theme-color" content="#ffffff" />
|
<meta name="theme-color" content="#ffffff" />
|
||||||
|
|
||||||
{!isProduction && <title>{name}</title>}
|
{name ? <title>{name}</title> : <title>{`{{.Name}}`}</title>}
|
||||||
{isProduction && <title>{'{{.Name}}'}</title>}
|
|
||||||
|
|
||||||
<style>{customStyles}</style>
|
<style>{customStyles}</style>
|
||||||
<base target="_blank" />
|
<base target="_blank" />
|
||||||
</Head>
|
</Head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user