mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: adopted stylesheets (#2785)
This commit is contained in:
committed by
GitHub
parent
1cc853a318
commit
74696faf47
@@ -40,6 +40,10 @@ class AutonomousCustomElement extends HTMLElement {
|
||||
wrapper.appendChild(img);
|
||||
wrapper.appendChild(info);
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
this.shadowRoot.adoptedStyleSheets = [sheet];
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define('autonomous-custom-element', AutonomousCustomElement);
|
||||
|
||||
Reference in New Issue
Block a user