1if (null === localStorage.getItem('themeName') || 'dynamic-theme' === localStorage.getItem('themeName')) { 2 document.body.classList.add(matchMedia('(prefers-color-scheme: dark)').matches ? 'darkTheme' : 'lightTheme'); 3 window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e) => { 4 document.body.classList.remove('lightTheme', 'darkTheme'); 5 document.body.classList.add(e.matches ? 'darkTheme' : 'lightTheme'); 6 }); 7} else { 8 document.body.classList.add(localStorage.getItem('themeName')); 9}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.