From 48a57bf16c35a01534cf68251ad4af61fcdbcbfe Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 8 Jun 2022 13:42:08 +0200 Subject: [PATCH] Use name of the cluster as web title Set the title attribute of the web interface page to the name of the cluster. --- packages/master/src/Master.js | 1 + packages/master/web/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/master/src/Master.js b/packages/master/src/Master.js index c65f5676..65d0c9e8 100644 --- a/packages/master/src/Master.js +++ b/packages/master/src/Master.js @@ -641,6 +641,7 @@ class Master { fs.readFile(path.join(__dirname, "..", "web", "index.html"), "utf8").then((content) => { res.type("text/html"); res.send(content + .replace(/__CLUSTER_NAME__/g, res.app.locals.master.config.get("master.name")) .replace(/__WEB_ROOT__/g, webRoot) .replace(/__STATIC_ROOT__/g, staticRoot) .replace(/__MAIN_BUNDLE__/g, mainBundle) diff --git a/packages/master/web/index.html b/packages/master/web/index.html index 7865557c..fde58715 100644 --- a/packages/master/web/index.html +++ b/packages/master/web/index.html @@ -4,7 +4,7 @@ - Clusterio + __CLUSTER_NAME__