disallow newlines in onboarding username

This commit is contained in:
RossAscends 2023-12-01 17:43:05 +09:00
parent 862fc56b39
commit 59880ee171
1 changed files with 2 additions and 1 deletions

View File

@ -5406,9 +5406,10 @@ async function doOnboarding(avatarId) {
template.find('input[name="enable_simple_mode"]').on('input', function () {
simpleUiMode = $(this).is(':checked');
});
const userName = await callPopup(template, 'input', name1);
var userName = await callPopup(template, 'input', name1);
if (userName) {
userName = userName.replace('\n', ' ')
setUserName(userName);
console.log(`Binding persona ${avatarId} to name ${userName}`);
power_user.personas[avatarId] = userName;