MCPcopy
hub / github.com/Justineo/github-hovercard / applyTheme

Function applyTheme

src/hovercard.js:2132–2134  ·  view source on GitHub ↗
(theme)

Source from the content-addressed store, hash-verified

2130 }
2131
2132 function applyTheme(theme) {
2133 document.documentElement.classList.add(`ghh-theme-${theme}`)
2134 }
2135
2136 function extractElem (context, el, strategy) {
2137 if (context && !context.contains(el)) {

Callers 1

hovercard.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected