Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
installed() {
if(this.shadowRoot && this.shadowRoot.styleSheets) {
stylesheet.fromDocumentCSS(this.shadowRoot.styleSheets)
}
let node = this
while(node) {
const styleSheets = node.styleSheets
if(styleSheets) {
stylesheet.fromDocumentCSS(styleSheets)
}
node = node.parentNode
}
this.scene = new Scene(this.container, this.props)
render(this.scene, this.props.children)
}
installed() {
if(this.shadowRoot && this.shadowRoot.styleSheets) {
stylesheet.fromDocumentCSS(this.shadowRoot.styleSheets)
}
let node = this
while(node) {
const styleSheets = node.styleSheets
if(styleSheets) {
stylesheet.fromDocumentCSS(styleSheets)
}
node = node.parentNode
}
this.scene = new Scene(this.container, this.props)
render(this.scene, this.props.children)
}