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 = () => {
|
||||
backgrounded = true;
|
||||
defaultTitle = document.title;
|
||||
defaultTitle = window.document.title;
|
||||
};
|
||||
|
||||
const onFocus = () => {
|
||||
|
@ -67,9 +67,7 @@ export const Main: FC = () => {
|
||||
<meta name="msapplication-TileImage" content="/img/favicon/ms-icon-144x144.png" />
|
||||
<meta name="theme-color" content="#ffffff" />
|
||||
|
||||
{!isProduction && <title>{name}</title>}
|
||||
{isProduction && <title>{'{{.Name}}'}</title>}
|
||||
|
||||
{name ? <title>{name}</title> : <title>{`{{.Name}}`}</title>}
|
||||
<style>{customStyles}</style>
|
||||
<base target="_blank" />
|
||||
</Head>
|
||||
|
Loading…
x
Reference in New Issue
Block a user