Merge pull request #32936 from overleaf/mj-ce-themes
[web] Enable changing overall themes in SP/CE GitOrigin-RevId: a6aa35e40826faec1001b658603b9f1cc8b0a50d
This commit is contained in:
committed by
Copybot
parent
628e05a278
commit
32255a4e6f
@@ -305,23 +305,20 @@ export default async function (webRouter, privateApiRouter, publicApiRouter) {
|
||||
})
|
||||
|
||||
webRouter.use(function (req, res, next) {
|
||||
// TODO
|
||||
if (Settings.overleaf != null) {
|
||||
res.locals.overallThemes = [
|
||||
{
|
||||
name: 'Dark',
|
||||
val: '',
|
||||
},
|
||||
{
|
||||
name: 'Light',
|
||||
val: 'light-',
|
||||
},
|
||||
{
|
||||
name: 'System',
|
||||
val: 'system',
|
||||
},
|
||||
]
|
||||
}
|
||||
res.locals.overallThemes = [
|
||||
{
|
||||
name: 'Dark',
|
||||
val: '',
|
||||
},
|
||||
{
|
||||
name: 'Light',
|
||||
val: 'light-',
|
||||
},
|
||||
{
|
||||
name: 'System',
|
||||
val: 'system',
|
||||
},
|
||||
]
|
||||
next()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user