1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Do not allow empty spaces

This commit is contained in:
DanielnetoDotCom 2021-03-17 13:23:31 -03:00
parent a772d953ce
commit 6be898f1d6

View file

@ -80,7 +80,8 @@ if (empty($meet_schedule_id)) {
closeModal: true,
},
}).then(function (displayName) {
if (!displayName){
displayName = displayName.trim();
if (!displayName || /^$|^\s+$/.test(displayName)){
//avideoAlertError('<?php echo __("You must provide a name"); ?>');
return getMeetDisplayName(domain, roomName, jwt, email, TOOLBAR_BUTTONS);
}else{