mirror of https://github.com/Chocobozzz/PeerTube
Remove uneeded language injection
It's already handled by angular buildpull/4461/head
parent
0fe87dc5a1
commit
8bd67ef6af
|
@ -303,7 +303,6 @@ class ClientHtml {
|
||||||
|
|
||||||
let html = buffer.toString()
|
let html = buffer.toString()
|
||||||
|
|
||||||
if (paramLang) html = ClientHtml.addHtmlLang(html, paramLang)
|
|
||||||
html = ClientHtml.addManifestContentHash(html)
|
html = ClientHtml.addManifestContentHash(html)
|
||||||
html = ClientHtml.addFaviconContentHash(html)
|
html = ClientHtml.addFaviconContentHash(html)
|
||||||
html = ClientHtml.addLogoContentHash(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) {
|
async function serveIndexHTML (req: express.Request, res: express.Response) {
|
||||||
if (req.accepts(ACCEPT_HEADERS) === 'html' ||
|
if (req.accepts(ACCEPT_HEADERS) === 'html' || !req.headers.accept) {
|
||||||
!req.headers.accept) {
|
|
||||||
try {
|
try {
|
||||||
await generateHTMLPage(req, res, req.params.language)
|
await generateHTMLPage(req, res, req.params.language)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue