]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Display hostname:port/path in the page title 2096/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 20 Mar 2018 15:20:51 +0000 (15:20 +0000)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 20 Mar 2018 16:03:03 +0000 (19:03 +0300)
interface/js/main.js

index c8254a963eff0d3e191e9acc2059a5b3adffa086..d15f8c99b3ce0807de12b895f521c909d0289fe5 100644 (file)
@@ -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 = _;
 });