move head setting logic from app to worker
This commit is contained in:
parent
e39eb9c82e
commit
b6e1dd5561
|
@ -13,7 +13,6 @@ import { getEndpoint } from 'utils/common/apiUtil';
|
|||
import { getData, LS_KEYS } from 'utils/storage/localStorage';
|
||||
import HTTPService from 'services/HTTPService';
|
||||
import FlashMessageBar from 'components/FlashMessageBar';
|
||||
import Head from 'next/head';
|
||||
import { getAlbumSiteHost } from 'constants/pages';
|
||||
import GoToEnte from 'components/pages/sharedAlbum/GoToEnte';
|
||||
|
||||
|
@ -657,18 +656,6 @@ export default function App({ Component, err }) {
|
|||
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>{constants.TITLE}</title>
|
||||
{typeof window !== 'undefined' &&
|
||||
window.location.host === getAlbumSiteHost() ? (
|
||||
<meta name="description" content="album shared over ente" />
|
||||
) : (
|
||||
<meta
|
||||
name="description"
|
||||
content="ente is a privacy focussed photo storage service that offers end-to-end encryption."
|
||||
/>
|
||||
)}
|
||||
</Head>
|
||||
<GlobalStyles />
|
||||
{showNavbar && (
|
||||
<Navbar>
|
||||
|
|
|
@ -33,6 +33,7 @@ export default class MyDocument extends Document {
|
|||
return (
|
||||
<Html lang="en">
|
||||
<Head>
|
||||
<title>ente.io | encrypted photo storage</title>
|
||||
<link
|
||||
rel="icon"
|
||||
href="/images/favicon.png"
|
||||
|
|
|
@ -135,7 +135,6 @@ const englishConstants = {
|
|||
NEXT: 'next (arrow right)',
|
||||
NO_INTERNET_CONNECTION:
|
||||
'please check your internet connection and try again',
|
||||
TITLE: 'ente.io | encrypted photo storage',
|
||||
UPLOAD_FIRST_PHOTO_DESCRIPTION: 'preserve your first memory with ente',
|
||||
UPLOAD_FIRST_PHOTO: 'preserve',
|
||||
UPLOAD_DROPZONE_MESSAGE: 'drop to backup your files',
|
||||
|
|
Loading…
Reference in a new issue