From 5fe56a3bf50d5b0fd4bb83221385074c0cd089ba Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Wed, 26 Apr 2017 00:43:53 +0200 Subject: [PATCH] [TASK] Title tag - details first --- lib/title.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/title.js b/lib/title.js index be92f8d..1602c08 100644 --- a/lib/title.js +++ b/lib/title.js @@ -6,10 +6,10 @@ define(function () { var title = [config.siteName]; if (d !== undefined) { - title.push(d); + title.unshift(d); } - document.title = title.join(': '); + document.title = title.join(' - '); } this.resetView = function resetView() { @@ -21,7 +21,7 @@ define(function () { }; this.gotoLink = function gotoLink(d) { - setTitle((d.source.node ? d.source.node.nodeinfo.hostname : d.source.id) + ' – ' + d.target.node.nodeinfo.hostname); + setTitle((d.source.node ? d.source.node.nodeinfo.hostname : d.source.id) + ' \u21D4 ' + d.target.node.nodeinfo.hostname); }; this.gotoLocation = function gotoLocation() {