move head setting logic from app to worker

This commit is contained in:
Abhinav 2022-02-05 16:06:22 +05:30
parent e39eb9c82e
commit b6e1dd5561
3 changed files with 1 additions and 14 deletions

View file

@ -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>

View file

@ -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"

View file

@ -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',