Spaces:
Running
Running
Tu Nombre commited on
Commit ·
44cd4a7
1
Parent(s): e470947
sala espera con check real
Browse files
main.py
CHANGED
|
@@ -521,7 +521,7 @@ const msgInterval = setInterval(() => {{
|
|
| 521 |
|
| 522 |
async function checkReady() {{
|
| 523 |
try {{
|
| 524 |
-
const r = await fetch(url
|
| 525 |
clearInterval(msgInterval);
|
| 526 |
clearInterval(checkInterval);
|
| 527 |
statusEl.textContent = "✅ ¡Tu canal está listo!";
|
|
|
|
| 521 |
|
| 522 |
async function checkReady() {{
|
| 523 |
try {{
|
| 524 |
+
const r = await fetch(`/check-space?url=${{encodeURIComponent(url)}}`); const d = await r.json(); if(!d.ready) throw new Error('not ready');
|
| 525 |
clearInterval(msgInterval);
|
| 526 |
clearInterval(checkInterval);
|
| 527 |
statusEl.textContent = "✅ ¡Tu canal está listo!";
|