MCPcopy
hub / github.com/jamiebuilds/spectacle-code-slide / getComputedCodeStyle

Function getComputedCodeStyle

src/getComputedCodeStyle.js:3–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1var computedCodeStyle;
2
3function getComputedCodeStyle() {
4 if (!computedCodeStyle) {
5 const div = document.createElement("code");
6
7 div.style.display = "none";
8 div.className = "language-xxx";
9
10 document.body.appendChild(div);
11
12 computedCodeStyle = window.getComputedStyle(div);
13 }
14
15 return computedCodeStyle;
16}
17
18module.exports = getComputedCodeStyle;

Callers 1

CodeSlide.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected