PageSourceSearch

https://app.perfectlisting.ai/scripts/theme-bootstrap.js

js perfectlisting.ai collected 2026-10-05 15:12:53 UTC 571 bytes, 19 lines download raw bytes

1(() => {
2  try {
3    const themeStorage = localStorage.getItem('theme-storage');
4    if (!themeStorage) {
5      return;
6    }
7
8    const themeState = JSON.parse(themeStorage);
9    const mode = themeState?.state?.mode || 'system';
10    const prefersDark = window.matchMedia?.('(prefers-color-scheme: dark)').matches;
11    const isDark = mode === 'dark' || (mode === 'system' && prefersDark);
12
13    if (isDark) {
14      document.documentElement.classList.add('dark');
15    }
16  } catch (error) {
17    console.error('Error applying theme from bootstrap script:', error);
18  }
19})();

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.