PageSourceSearch

https://dev.app.uscore.no/assets/useDarkTheme-DmHFoVeT.js

js uscore.no collected 2026-10-09 17:05:19 UTC 635 bytes, 1 lines download raw bytes

1import{c as e,dt as t}from"./runtime-core.esm-bundler-jrQIZ0n_.js";var n=t(`light`);r();function r(){return localStorage.theme===`dark`||!(`theme`in localStorage)&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?(i(`dark`),`dark`):(i(`light`),`light`)}function i(e){e===`dark`?(localStorage.setItem(`theme`,`dark`),n.value=`dark`):(localStorage.setItem(`theme`,`light`),n.value=`light`)}function a(){function t(){localStorage.getItem(`theme`)===`light`?i(`dark`):i(`light`)}let r=e(()=>n.value===`dark`?`tw-dark`:``);return{isDarkTheme:e(()=>n.value===`dark`),toggleTheme:t,currentTheme:n,tailwindDarkClass:r}}export{a as t};

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.