MCPcopy Create free account
hub / github.com/apache/cloudstack / applyStaticCustomization

Function applyStaticCustomization

ui/src/utils/guiTheme.js:91–103  ·  view source on GitHub ↗
(favicon, css)

Source from the content-addressed store, hash-verified

89}
90
91async function applyStaticCustomization (favicon, css) {
92 document.getElementById('favicon').href = favicon
93
94 let style = document.getElementById('guiThemeCSS')
95 if (style != null) {
96 style.innerHTML = css
97 } else {
98 style = document.createElement('style')
99 style.setAttribute('id', 'guiThemeCSS')
100 style.innerHTML = css
101 document.body.appendChild(style)
102 }
103}

Callers 1

Calls 1

setAttributeMethod · 0.80

Tested by

no test coverage detected