mirror of
https://github.com/tavo-wasd-gh/conex-builder.git
synced 2025-06-07 12:13:30 -06:00
check length
This commit is contained in:
parent
0736dfeb63
commit
590b5032b0
2 changed files with 36 additions and 30 deletions
|
@ -132,6 +132,12 @@ function initializeEventListeners() {
|
||||||
errorMessage.innerHTML = `Revisar la disponibilidad del sitio tardó mucho tiempo, intentalo más tarde.`;
|
errorMessage.innerHTML = `Revisar la disponibilidad del sitio tardó mucho tiempo, intentalo más tarde.`;
|
||||||
}, 10000);
|
}, 10000);
|
||||||
|
|
||||||
|
if (directory.length < 4 || directory.length > 35) {
|
||||||
|
errorMessage.style.display = "block";
|
||||||
|
errorMessage.innerHTML = `El nombre del sitio debe tener entre 4 y 35 caracteres.`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const exists = await checkDirectoryExists(directory);
|
const exists = await checkDirectoryExists(directory);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue