Quellcode durchsuchen

Use CSS hashed paths when hot-swapping themes.

Paulo Reis vor 8 Jahren
Ursprung
Commit
af4094a88c
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      services/web/app/coffee/infrastructure/ExpressLocals.coffee

+ 2 - 2
services/web/app/coffee/infrastructure/ExpressLocals.coffee

@@ -346,8 +346,8 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
 	webRouter.use (req, res, next) ->
 		if Settings.overleaf?
 			res.locals.overallThemes = [
-				{ name: "Default", val: "",       path: res.locals.buildCssPath(res.locals.buildCssFileName()) }
-				{ name: "Light",   val: "light-", path: res.locals.buildCssPath(res.locals.buildCssFileName("light-")) }
+				{ name: "Default", val: "",       path: res.locals.buildCssPath(res.locals.buildCssFileName(), {hashedPath:true}) }
+				{ name: "Light",   val: "light-", path: res.locals.buildCssPath(res.locals.buildCssFileName("light-"), {hashedPath:true}) }
 			]
 		next()