mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-07 02:10:39 +00:00
Call buildCssPath with empty string for default template (#3594)
* Call buildCssPath with empty string for default template Call buildCssPath with an empty string instead of null for the default template * Remove unused options argument This means we can also remove the empty strings for the themeModifier arg, instead passing undefined, to get the default arg GitOrigin-RevId: 78cd14ae7ab9d58f66c27cb54477d24b4bd494c7
This commit is contained in:
parent
4955231abf
commit
0d349aa4b1
3 changed files with 4 additions and 4 deletions
|
@ -340,12 +340,12 @@ module.exports = function(webRouter, privateApiRouter, publicApiRouter) {
|
|||
{
|
||||
name: 'Default',
|
||||
val: '',
|
||||
path: res.locals.buildCssPath(null, { hashedPath: true })
|
||||
path: res.locals.buildCssPath()
|
||||
},
|
||||
{
|
||||
name: 'Light',
|
||||
val: 'light-',
|
||||
path: res.locals.buildCssPath('light-', { hashedPath: true })
|
||||
path: res.locals.buildCssPath('light-')
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ html.full-height(itemscope, itemtype='http://schema.org/Product')
|
|||
title Something went wrong
|
||||
link(rel="icon", href="/favicon.ico")
|
||||
if buildCssPath
|
||||
link(rel="stylesheet", href=buildCssPath(null, { hashedPath: true }))
|
||||
link(rel="stylesheet", href=buildCssPath())
|
||||
|
||||
body.full-height
|
||||
.content.content-alt.full-height
|
||||
|
|
|
@ -4,7 +4,7 @@ html.full-height(itemscope, itemtype='http://schema.org/Product')
|
|||
title Something went wrong
|
||||
link(rel="icon", href="/favicon.ico")
|
||||
if buildCssPath
|
||||
link(rel="stylesheet", href=buildCssPath(null, { hashedPath: true }))
|
||||
link(rel="stylesheet", href=buildCssPath())
|
||||
|
||||
body.full-height
|
||||
.content.content-alt.full-height
|
||||
|
|
Loading…
Add table
Reference in a new issue