1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00
Files
web/theme_head.5f24ba8d7aa944e6f52b.js
github-actions[bot] 050584bc60 Deploy 2.26.0 (#1453)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-02-08 19:43:14 -07:00

2 lines
474 B
JavaScript

!function(){const e="light",t=document.documentElement;let l=e;const s=window.localStorage.getItem("global");if(null!=s){const e=JSON.parse(s);null!=e&&null!=e.theme&&(e.theme.indexOf("system")>-1?l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e.theme.indexOf("dark")>-1&&(l="dark")),t.classList.contains("theme_"+l)||(t.classList.remove("theme_light"),t.classList.add("theme_"+l))}}();
//# sourceMappingURL=theme_head.5f24ba8d7aa944e6f52b.js.map