Merge pull request #997 from sharelatex/cmg-meta-title

Fix the meta title including 'ShareLaTeX'
This commit is contained in:
Chrystal Maria Griffiths 2018-10-04 15:00:30 +01:00 committed by GitHub
commit 5f5c9a1efc
2 changed files with 2 additions and 1 deletions

View file

@ -354,4 +354,5 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
webRouter.use (req, res, next) -> webRouter.use (req, res, next) ->
res.locals.ExposedSettings = res.locals.ExposedSettings =
isOverleaf: Settings.overleaf? isOverleaf: Settings.overleaf?
appName: Settings.appName
next() next()

View file

@ -38,7 +38,7 @@ define [
$scope.$watch "project.name", (name) -> $scope.$watch "project.name", (name) ->
if name? if name?
window.document.title = name + " - Online LaTeX Editor ShareLaTeX" window.document.title = name + " - Online LaTeX Editor #{ExposedSettings.appName}"
$scope.$applyAsync () -> $scope.$applyAsync () ->
# This ensures that the element is measured *after* the binding is done (i.e. project name is rendered). # 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) $scope.state.overflowed = (projectNameReadOnlyEl.scrollWidth > projectNameReadOnlyEl.clientWidth)