mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 04:33:55 +00:00
parse left and right footers as json
This commit is contained in:
parent
3cb66b24a9
commit
cc3c8d1db7
1 changed files with 11 additions and 4 deletions
|
@ -410,15 +410,22 @@ settings =
|
||||||
|
|
||||||
#### OPTIONAL CONFIGERABLE SETTINGS
|
#### OPTIONAL CONFIGERABLE SETTINGS
|
||||||
|
|
||||||
|
|
||||||
if process.env["SHARELATEX_LEFT_FOOTER"]?
|
if process.env["SHARELATEX_LEFT_FOOTER"]?
|
||||||
settings.left_footer = process.env["SHARELATEX_LEFT_FOOTER"]
|
try
|
||||||
|
settings.nav.left_footer = JSON.parse(process.env["SHARELATEX_LEFT_FOOTER"])
|
||||||
|
catch e
|
||||||
|
console.error("could not parse SHARELATEX_LEFT_FOOTER, not valid JSON")
|
||||||
|
|
||||||
if process.env["SHARELATEX_RIGHT_FOOTER"]?
|
if process.env["SHARELATEX_RIGHT_FOOTER"]?
|
||||||
settings.right_footer = process.env["SHARELATEX_RIGHT_FOOTER"]
|
settings.nav.right_footer = process.env["SHARELATEX_RIGHT_FOOTER"]
|
||||||
|
try
|
||||||
|
settings.nav.right_footer = JSON.parse(process.env["SHARELATEX_RIGHT_FOOTER"])
|
||||||
|
catch e
|
||||||
|
console.error("could not parse SHARELATEX_RIGHT_FOOTER, not valid JSON")
|
||||||
|
|
||||||
|
|
||||||
if process.env["SHARELATEX_HEADER"]?
|
if process.env["SHARELATEX_HEADER"]?
|
||||||
settings.header = process.env["SHARELATEX_HEADER"]
|
settings.nav.header = process.env["SHARELATEX_HEADER"]
|
||||||
|
|
||||||
|
|
||||||
# Sending Email
|
# Sending Email
|
||||||
|
|
Loading…
Reference in a new issue