aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/frontend/html/util
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2025-11-17 15:12:45 +0100
committerGitHub Enterprise <[email protected]>2025-11-17 15:12:45 +0100
commit1b11139e15a7676c1d9c825dbf3aa0397fcc8f3b (patch)
tree97acff2dfe62588b47b4a20c2e029e1d66e7b749 /src/zenserver/frontend/html/util
parentfix wildcard matching (#650) (diff)
downloadzen-1b11139e15a7676c1d9c825dbf3aa0397fcc8f3b.tar.xz
zen-1b11139e15a7676c1d9c825dbf3aa0397fcc8f3b.zip
Include version string on the dashboard's start page. (#651)
* Method to get plain text from an async request * Include server's version on the dashboard start page * Same paragraph style as the rest of the method * Updated changelog * Update frontend archive
Diffstat (limited to 'src/zenserver/frontend/html/util')
-rw-r--r--src/zenserver/frontend/html/util/fetcher.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/zenserver/frontend/html/util/fetcher.js b/src/zenserver/frontend/html/util/fetcher.js
index 45f597404..9d464ecf4 100644
--- a/src/zenserver/frontend/html/util/fetcher.js
+++ b/src/zenserver/frontend/html/util/fetcher.js
@@ -45,6 +45,15 @@ export class Fetcher
return new CbObject(data);
}
+ async text()
+ {
+ const response = await this._get("text/plain");
+ if (!response)
+ return null;
+
+ return await response.text();
+ }
+
async delete()
{
const resource = this._build_uri();