|
|
@@ -99,6 +99,12 @@ async function initializeApp() {
|
|
|
return;
|
|
|
}
|
|
|
userTable = parseInt(urlTable);
|
|
|
+ if (userTable < 0 || userTable > 1000) {
|
|
|
+ alert("Mesa no válida.");
|
|
|
+ console.warn("Mesa no válida.");
|
|
|
+ window.location.replace("/");
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
// 2. Verificar Cache
|
|
|
const isCacheValid = await checkCache();
|