mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 16:13:12 +09:00
Use name of the cluster as web title
Set the title attribute of the web interface page to the name of the cluster.
This commit is contained in:
1 parent
8742b4127c
commit
48a57bf16c
2 files changed
+2
-1
No files matched your search
@@ -641,6 +641,7 @@ class Master {
|
|||||||
fs.readFile(path.join(__dirname, "..", "web", "index.html"), "utf8").then((content) => {
|
fs.readFile(path.join(__dirname, "..", "web", "index.html"), "utf8").then((content) => {
|
||||||
res.type("text/html");
|
res.type("text/html");
|
||||||
res.send(content
|
res.send(content
|
||||||
|
.replace(/__CLUSTER_NAME__/g, res.app.locals.master.config.get("master.name"))
|
||||||
.replace(/__WEB_ROOT__/g, webRoot)
|
.replace(/__WEB_ROOT__/g, webRoot)
|
||||||
.replace(/__STATIC_ROOT__/g, staticRoot)
|
.replace(/__STATIC_ROOT__/g, staticRoot)
|
||||||
.replace(/__MAIN_BUNDLE__/g, mainBundle)
|
.replace(/__MAIN_BUNDLE__/g, mainBundle)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#2a2a2a" />
|
<meta name="theme-color" content="#2a2a2a" />
|
||||||
<title>Clusterio</title>
|
<title>__CLUSTER_NAME__</title>
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|||||||
Reference in new issue
Block a user