diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-11-28 20:32:06 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-11-28 20:32:06 +0100 |
commit | 13e4bf98eddc9b407aee42518ef0cb6356ccacdb (patch) | |
tree | a8e2de501368e34eb790bdde0818e1a9d4d7b12c /html/index.html | |
parent | README: update (diff) | |
download | wg-api-web-13e4bf98eddc9b407aee42518ef0cb6356ccacdb.tar.gz wg-api-web-13e4bf98eddc9b407aee42518ef0cb6356ccacdb.zip |
html: set document titlev1.0.1
Diffstat (limited to 'html/index.html')
-rw-r--r-- | html/index.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/html/index.html b/html/index.html index 25a1651..d8ce009 100644 --- a/html/index.html +++ b/html/index.html @@ -1,6 +1,7 @@ <!DOCTYPE html> <html lang="en"> <head> + <title>wg-api-web</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.jsdelivr.net/gh/tofsjonas/sortable/sortable-base.min.css" rel="stylesheet"> @@ -351,7 +352,9 @@ function peers_remove_all() { function device_show() { let formatter = new Device(); let data = JSON.parse(this.responseText); - formatter.update(data['result']['device']); + data = data['result']['device']; + document.title = `${data['name']} - ${data['num_peers']} peer(s) - wg-api-web`; + formatter.update(data); } function peers_show() { |