diff --git a/content.js b/content.js index f56cd82..9539782 100644 --- a/content.js +++ b/content.js @@ -111,7 +111,13 @@ if (btnDebugPages) { btnDebugPages.addEventListener('click', (e) => { console.log('🎯 BUTTON CLICKED: Debug Contar Páginas'); - debugCountPagesForAllManga(); + console.log('📝 Button element:', btnDebugPages); + try { + debugCountPagesForAllManga(); + } catch (error) { + console.error('❌❌❌ Error in debugCountPagesForAllManga:', error); + console.error('Stack:', error.stack); + } }); } else { console.error('❌ btnDebugPages not found!');