mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Use settings appName
This commit is contained in:
parent
ecdd00ecb9
commit
a979202a7c
2 changed files with 2 additions and 1 deletions
|
@ -354,4 +354,5 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
|
|||
webRouter.use (req, res, next) ->
|
||||
res.locals.ExposedSettings =
|
||||
isOverleaf: Settings.overleaf?
|
||||
appName: Settings.appName
|
||||
next()
|
||||
|
|
|
@ -38,7 +38,7 @@ define [
|
|||
|
||||
$scope.$watch "project.name", (name) ->
|
||||
if name?
|
||||
window.document.title = name + " - Online LaTeX Editor ShareLaTeX"
|
||||
window.document.title = name + " - Online LaTeX Editor #{ExposedSettings.appName}"
|
||||
$scope.$applyAsync () ->
|
||||
# This ensures that the element is measured *after* the binding is done (i.e. project name is rendered).
|
||||
$scope.state.overflowed = (projectNameReadOnlyEl.scrollWidth > projectNameReadOnlyEl.clientWidth)
|
||||
|
|
Loading…
Reference in a new issue