diff --git a/public/app.js b/public/app.js index 94abff2..a875fdb 100644 --- a/public/app.js +++ b/public/app.js @@ -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);