Explorar o código

Merge pull request #5009 from overleaf/jpa-fix-no-js-style

[web] fix css import for no-js pages

GitOrigin-RevId: a7bf516319b2a3c7b908468eedad28dbe80a53b3
Jakob Ackermann %!s(int64=5) %!d(string=hai) anos
pai
achega
7e06ca22f3
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      services/web/app/views/layout/layout-no-js.pug

+ 2 - 3
services/web/app/views/layout/layout-no-js.pug

@@ -12,8 +12,7 @@ html(lang="en")
 
 		link(rel="icon", href="/favicon.ico")
 
-		if entrypointStyles
-			each file in entrypointStyles('main')
-				link(rel='stylesheet', href=file)
+		if buildCssPath
+			link(rel="stylesheet", href=buildCssPath())
 
 block body