Skip to content

Commit e6ef13d

Browse files
committed
nav.js: debug content children
1 parent 79b051b commit e6ef13d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

assets/nav.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
if(i < 3) console.log('CM', i, 'parent:', el.parentElement?.className, 'grandparent:', el.parentElement?.parentElement?.className);
134134
});
135135
if (document.querySelector('.cm-editor-wrap')) { console.log('GUARD: already rendered'); return; }
136+
console.log('content children:', Array.from(document.querySelector('.content')?.children||[]).map(el=>el.tagName+'.'+el.className).join(', '));
136137
document.querySelectorAll('.syntax-block, .impl-block').forEach(el => {
137138
el.style.cssText = 'display:none!important;visibility:hidden!important;height:0!important;overflow:hidden!important;';
138139
if (!el.parentNode) return;

0 commit comments

Comments
 (0)