mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
look at more chars for if the server is in dark mode
v2-dark.overleaf.com also needs to be marked as dark
This commit is contained in:
parent
dec103d582
commit
413721ebf9
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
|
||||||
logger.log user_id:user_id, ip:req?.ip, "cdnBlocked for user, not using it and turning it off for future requets"
|
logger.log user_id:user_id, ip:req?.ip, "cdnBlocked for user, not using it and turning it off for future requets"
|
||||||
req.session.cdnBlocked = true
|
req.session.cdnBlocked = true
|
||||||
|
|
||||||
isDark = req.headers?.host?.slice(0,4)?.toLowerCase() == "dark"
|
isDark = req.headers?.host?.slice(0,7)?.toLowerCase().indexOf("dark") != -1
|
||||||
isSmoke = req.headers?.host?.slice(0,5)?.toLowerCase() == "smoke"
|
isSmoke = req.headers?.host?.slice(0,5)?.toLowerCase() == "smoke"
|
||||||
isLive = !isDark and !isSmoke
|
isLive = !isDark and !isSmoke
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue