Skip to content

Commit b3c3e33

Browse files
committed
nav.js: include #code-cm-wrap in CM load condition
1 parent 619f839 commit b3c3e33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
}
102102

103103
// CodeMirror syntax highlighting on reference/example pages
104-
if (document.querySelector('.syntax-block, .impl-block, pre#code-pre') &&
104+
if (document.querySelector('.syntax-block, .impl-block, pre#code-pre, #code-cm-wrap') &&
105105
!document.getElementById('ref-cm-loaded')) {
106106
const CDNJS = 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16';
107107
// Preload hints for faster script loading

0 commit comments

Comments
 (0)