Skip to content

Commit

Permalink
Adopted Shane’s suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Shane Osbourne <shane.osbourne8@gmail.com>
  • Loading branch information
mgurgel and shakyShane authored Sep 13, 2024
1 parent e08a269 commit 3429220
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,14 @@ function PageTitle() {
const { t } = useTypedTranslation()

useEffect(() => {
let title

switch(kind) {
case 'phishing':
title = t('phishingPageHeading')
document.title = t('phishingPageHeading')
break;
default:
title = t('sslPageHeading')
document.title = t('sslPageHeading')
}

document.title = title
}, [])
}, [kind, t])

return null
}
Expand Down

0 comments on commit 3429220

Please sign in to comment.