From b3d5e51fb51564ac4e13bf96c710dd6b39b0b5b8 Mon Sep 17 00:00:00 2001 From: Jeff Kaufman Date: Sun, 24 Jan 2021 22:51:17 +0000 Subject: [PATCH] ui: allow instances to provide their own names. Fixes #205. --- html/demo.js | 4 ++++ html/index.html | 2 +- server.py | 7 +++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/html/demo.js b/html/demo.js index d49163f..a21160d 100644 --- a/html/demo.js +++ b/html/demo.js @@ -116,6 +116,10 @@ function updateCurrentUsers() { } updateCurrentUsersText(x_audio_metadata.n_connected_users); + + if (x_audio_metadata.instance_name) { + window.instanceName.innerText = x_audio_metadata.instance_name; + } } }; xhr.send(); diff --git a/html/index.html b/html/index.html index 594bae0..19cbaff 100644 --- a/html/index.html +++ b/html/index.html @@ -489,7 +489,7 @@