Remove uneeded language injection

It's already handled by angular build
pull/4461/head
Chocobozzz 2021-10-11 14:00:09 +02:00
parent 0fe87dc5a1
commit 8bd67ef6af
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 3 deletions

View File

@ -303,7 +303,6 @@ class ClientHtml {
let html = buffer.toString()
if (paramLang) html = ClientHtml.addHtmlLang(html, paramLang)
html = ClientHtml.addManifestContentHash(html)
html = ClientHtml.addFaviconContentHash(html)
html = ClientHtml.addLogoContentHash(html)
@ -555,8 +554,7 @@ function sendHTML (html: string, res: express.Response) {
}
async function serveIndexHTML (req: express.Request, res: express.Response) {
if (req.accepts(ACCEPT_HEADERS) === 'html' ||
!req.headers.accept) {
if (req.accepts(ACCEPT_HEADERS) === 'html' || !req.headers.accept) {
try {
await generateHTMLPage(req, res, req.params.language)
return