MCPcopy Create free account
hub / github.com/reactjs/react-modal / log

Function log

src/helpers/classList.js:27–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26/* istanbul ignore next */
27export function log() {
28 if (process.env.NODE_ENV !== "production") {
29 let classes = document.getElementsByTagName("html")[0].className;
30 let buffer = "Show tracked classes:\n\n";
31
32 buffer += `<html /> (${classes}):
33 `;
34 for (let x in htmlClassList) {
35 buffer += ` ${x} ${htmlClassList[x]}
36 `;
37 }
38
39 classes = document.body.className;
40
41 buffer += `\n\ndoc.body (${classes}):
42 `;
43 for (let x in docBodyClassList) {
44 buffer += ` ${x} ${docBodyClassList[x]}
45 `;
46 }
47
48 buffer += "\n";
49
50 console.log(buffer);
51 }
52}
53/* eslint-enable no-console */
54
55/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected