больше логирования!
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user