Skip to content

Commit 43683fe

Browse files
committed
nav.js: remove debug logs
1 parent e618df0 commit 43683fe

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

assets/nav.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,7 @@
243243
}
244244
if (window.editor && window.editor.setOption)
245245
window.editor.setOption('theme', on ? 'cppmode-dark' : 'cppmode');
246-
// Switch static CodeMirror blocks theme
247-
document.querySelectorAll('.CodeMirror').forEach(el => {
248-
if (el.CodeMirror) el.CodeMirror.setOption('theme', on ? 'cppmode-dark' : 'cppmode');
249-
});
250-
// Tell sketch iframes about dark mode
246+
// Switch static CodeMirror blocks theme // Tell sketch iframes about dark mode
251247
document.querySelectorAll('iframe').forEach(fr => {
252248
try { fr.contentWindow.postMessage(on ? 'dark' : 'light', '*'); } catch(e) {}
253249
});

0 commit comments

Comments
 (0)