We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f54be3e + 7e60526 commit ffe7b04Copy full SHA for ffe7b04
index.html
@@ -431,7 +431,10 @@
431
};
432
const $elements = document.getElementById('elements');
433
const updateStyle = (isDark) => {
434
- for (const pre of $elements.querySelectorAll('pre.sl-code-viewer')) {
+ for (const pre of [
435
+ ...Array.from($elements.querySelectorAll('pre.sl-code-viewer')),
436
+ ...Array.from($elements.querySelectorAll('div.sl-code-editor')),
437
+ ]) {
438
const isPreDark = isDark || !!pre.closest('.sl-inverted');
439
const theme = isPreDark ? darkTheme : lightTheme;
440
for (const span of pre.querySelectorAll('span')) {
0 commit comments