From dd963c8ba5d3b47bdc2e1195b33b96cf20fa5438 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Tue, 20 Mar 2018 15:20:51 +0000 Subject: [PATCH] [WebUI] Display hostname:port/path in the page title --- interface/js/main.js | 5 +++++ 1 file changed, 5 insertions(+) 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 = _; }); -- 2.39.5