diff --git a/packages/widget/src/element.ts b/packages/widget/src/element.ts index 3105a56..297aaff 100644 --- a/packages/widget/src/element.ts +++ b/packages/widget/src/element.ts @@ -101,6 +101,16 @@ export class BitLoginAuthElement extends HTMLElement { constructor() { super(); this.root = this.attachShadow({ mode: "open" }); + // A parsed CSSStyleSheet assigned via adoptedStyleSheets isn't subject to a page's + // style-src CSP the way an inline
${this.renderScreen()}${successOverlay}
`; + this.root.innerHTML = `
${this.renderScreen()}${successOverlay}
`; } private renderSuccessOverlay(label: string): string {