From f3ba40fffea06084f48b6aee8bc053d3fc455030 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 20 Jul 2023 23:45:43 +0100 Subject: [PATCH] index: use #sub if no display name --- html/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/index.html b/html/index.html index e8d85ea..9978f4f 100644 --- a/html/index.html +++ b/html/index.html @@ -499,7 +499,7 @@ // note: select element is just for show here and unused in the callback, // since there can only be one game account in this situation const name_info = JSON.parse(xml.response); - const name_text = name_info.displayNameSet ? name_info.displayName : "[no name set]"; + const name_text = name_info.displayNameSet ? name_info.displayName : `#${creds.sub}`; var select = document.createElement("select"); var opt = document.createElement("option"); opt.innerText = name_text;