aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-03-20 15:20:51 +0000
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-03-20 19:03:03 +0300
commitdd963c8ba5d3b47bdc2e1195b33b96cf20fa5438 (patch)
treece6b1559266afd141b17cff860b8383718a1d311 /interface
parent904d1d90b453466bd74bd789464cb566decbaad6 (diff)
downloadrspamd-dd963c8ba5d3b47bdc2e1195b33b96cf20fa5438.tar.gz
rspamd-dd963c8ba5d3b47bdc2e1195b33b96cf20fa5438.zip
[WebUI] Display hostname:port/path in the page title
Diffstat (limited to 'interface')
-rw-r--r--interface/js/main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/interface/js/main.js b/interface/js/main.js
index c8254a963..d15f8c99b 100644
--- a/interface/js/main.js
+++ b/interface/js/main.js
@@ -21,6 +21,11 @@ requirejs.config({
}
});
+document.title = window.location.hostname +
+ (window.location.port ? ":" + window.location.port : "") +
+ (window.location.pathname !== "/" ? window.location.pathname : "") +
+ " - Rspamd Web Interface";
+
define("d3.global", ["d3"], function(_) {
d3 = _;
});