больше логирования!

This commit is contained in:
Mikhail Chusavitin
2026-01-21 18:00:47 +03:00
parent 179d17259a
commit b3edd03b3e

View File

@@ -5,6 +5,17 @@ let table = null;
let enterHandler = null;
let selectedRowsDataGlobal = new Map(); // Только для "Выделить все" кросс-страничного
// ✅ Тестовое логирование
console.log('🚀 app.js загружен');
// Перехватываем все ошибки
window.addEventListener('error', function(e) {
console.error('❌ ГЛОБАЛЬНАЯ ОШИБКА:', e.message, e.filename, e.lineno);
});
// Тест консоли
console.log('✅ Консоль работает!');
async function api(url, method = 'GET', body) {
const opts = { method, headers: { 'Content-Type': 'application/json' } };
if (body) opts.body = JSON.stringify(body);