Add a wrapper for customElements.define() which adds some error handling
In case the browser doesn't support custom elements and shadow dom we display an error instead of the element. This assumes the JS code executed thus far didn't lead to errors, so this only works for semi-modern browers.
Please register or sign in to comment