Просмотр исходного кода

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

Fix the meta title including 'ShareLaTeX'
Chrystal Maria Griffiths 8 лет назад
Родитель
Сommit
5f5c9a1efc

+ 1 - 0
services/web/app/coffee/infrastructure/ExpressLocals.coffee

@@ -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()

+ 1 - 1
services/web/public/coffee/ide/settings/controllers/ProjectNameController.coffee

@@ -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)