MCPcopy Index your code
hub / github.com/cifertech/DisplayKit / getTheme

Function getTheme

app.js:1110–1114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1108
1109
1110function getTheme() {
1111 const saved = localStorage.getItem("theme");
1112 if (saved) return saved;
1113 return "dark";
1114}
1115
1116function setTheme(theme) {
1117 document.documentElement.setAttribute("data-theme", theme);

Callers 2

toggleThemeFunction · 0.85
app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected