MCPcopy Create free account
hub / github.com/docusealco/docuseal / safeRegisterElement

Function safeRegisterElement

app/javascript/application.js:100–100  ·  view source on GitHub ↗
(name, element, options = {})

Source from the content-addressed store, hash-verified

98})
99
100const safeRegisterElement = (name, element, options = {}) => !window.customElements.get(name) && window.customElements.define(name, element, options)
101
102safeRegisterElement('toggle-visible', ToggleVisible)
103safeRegisterElement('disable-hidden', DisableHidden)

Callers 1

application.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected