removed some domain dependencies

This commit is contained in:
mrfry 2023-04-11 16:18:38 +02:00
parent a1dab7a3ca
commit 50daae3cf1
4 changed files with 7 additions and 35 deletions

View file

@ -2,8 +2,6 @@ import React from 'react'
import Head from 'next/head'
import { useQueryClient } from 'react-query'
import constants from '../constants'
export default function Header(props) {
const { title } = props
const queryClient = useQueryClient()
@ -17,7 +15,9 @@ export default function Header(props) {
return (
<Head>
<title>{`${unreadString}${titleString}Qmining | ${constants.domain}`}</title>
<title>{`${unreadString}${titleString}Qmining${
typeof window !== 'undefined' ? `| ${window.location.domain}` : ''
}`}</title>
</Head>
)
}