From: Alexander Moisseev Date: Tue, 20 Mar 2018 15:20:51 +0000 (+0000) Subject: [WebUI] Display hostname:port/path in the page title X-Git-Tag: 1.7.2~31^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2096%2Fhead;p=thirdparty%2Frspamd.git [WebUI] Display hostname:port/path in the page title --- diff --git a/interface/js/main.js b/interface/js/main.js index c8254a963e..d15f8c99b3 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 = _; });