MCPcopy Index your code
hub / github.com/zhongsp/TypeScript / get_theme

Function get_theme

docs/book.js:317–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315 }
316
317 function get_theme() {
318 var theme;
319 try { theme = localStorage.getItem('mdbook-theme'); } catch (e) { }
320 if (theme === null || theme === undefined) {
321 return default_theme;
322 } else {
323 return theme;
324 }
325 }
326
327 function set_theme(theme, store = true) {
328 let ace_theme;

Callers 4

showThemesFunction · 0.85
updateThemeSelectedFunction · 0.85
set_themeFunction · 0.85
book.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected