- add current character name as document.title

- improved document.title blink on new rally point with inactive tab, #279
This commit is contained in:
Exodus4D
2016-08-06 16:30:02 +02:00
parent a87459895a
commit ec6ed66a6b
9 changed files with 111 additions and 35 deletions

View File

@@ -14,9 +14,11 @@ class MapController extends AccessController {
* @param \Base $f3
*/
public function init($f3) {
$character = $this->getCharacter();
// page title
$f3->set('pageTitle', 'Maps');
$pageTitle = $character ? $character->name : 'Map';
$f3->set('pageTitle', $pageTitle);
// main page content
$f3->set('pageContent', false);