From 46688eb8ee7180eff6b9bc17c85e64e6bf2814c1 Mon Sep 17 00:00:00 2001 From: zefie Date: Wed, 30 Nov 2022 11:28:24 -0500 Subject: [PATCH] add service_description option --- .../includes/ServiceVault/wtv-home/home.js | 12 +++++++++++- zefie_wtvp_minisrv/includes/config.json | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js index e298f413..02da07b4 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js @@ -206,7 +206,17 @@ data += ` -This server is operated by ${minisrv_config.config.service_owner}. +This server is operated by ${minisrv_config.config.service_owner}.
+`; +if (minisrv_config.config.service_description) { + if (typeof minisrv_config.config.service_description === "string") { + if (minisrv_config.config.service_description.length > 0) { + data += minisrv_config.config.service_description; + } + } +} + +data += ` diff --git a/zefie_wtvp_minisrv/includes/config.json b/zefie_wtvp_minisrv/includes/config.json index 25a5c387..30a1df24 100644 --- a/zefie_wtvp_minisrv/includes/config.json +++ b/zefie_wtvp_minisrv/includes/config.json @@ -22,6 +22,7 @@ "SharedROMCache": "SharedROMCache", // Shared ROMCache (wtv-service:/ROMCache/, where wtv-service is any configured service). Found under service vault. Best left unchanged. "enable_shared_romcache": true, // Disabling this will cause a lot of problems without manual intervention. Best left unchanged. "service_owner": "a minisrv user", // Set this to your name or screenname + "service_description": null, // Set to a string to have your description added to the default homepage. May be used in other places in the future. HTML is allowed here. "service_owner_account": "minisrvuser", // Set this to your account name on your minisrv "service_owner_contact": "someone", // Set this to your contact (eg email address, twitter handle, etc) "service_owner_contact_method": "something", // Set this to the contact method (eg email, twitter, etc)