MCPcopy Create free account
hub / github.com/codecombat/codecombat / setCSSVariables

Method setCSSVariables

app/views/core/JuniorModal.js:47–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 }
46
47 setCSSVariables () {
48 const viewportWidth = window.innerWidth || document.documentElement.clientWidth
49 document.documentElement.style.setProperty('--vw', `${viewportWidth}`)
50 }
51
52 hide () {
53 storage.save('junior-clicked', true)

Callers 1

afterRenderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected