diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-03-20 15:20:51 +0000 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-03-20 19:03:03 +0300 |
commit | dd963c8ba5d3b47bdc2e1195b33b96cf20fa5438 (patch) | |
tree | ce6b1559266afd141b17cff860b8383718a1d311 /interface | |
parent | 904d1d90b453466bd74bd789464cb566decbaad6 (diff) | |
download | rspamd-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.js | 5 |
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 = _; }); |