mirror of
https://github.com/bitwarden/browser.git
synced 2024-06-26 10:35:48 +02:00
4ff5f38e89
Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
24 lines
650 B
TypeScript
24 lines
650 B
TypeScript
import AutofillOverlayIframeService from "./autofill-overlay-iframe.service";
|
|||
|
|||
class AutofillOverlayIframeElement extends HTMLElement {
|
|||
constructor(
|
|||
iframePath: string,
|
|||
portName: string,
|
|||
initStyles: Partial<CSSStyleDeclaration>,
|
|||
iframeTitle: string,
|
|||
ariaAlert?: string
|
|||
) {
|
|||
super();
|
|||
|
|||
const shadow: ShadowRoot = this.attachShadow({ mode: "closed" });
|
|||
const autofillOverlayIframeService = new AutofillOverlayIframeService(
|
|||
iframePath,
|
|||
portName,
|
|||
shadow
|
|||
);
|
|||
autofillOverlayIframeService.initOverlayIframe(initStyles, iframeTitle, ariaAlert);
|
|||
}
|
|||
}
|
|||
|
|||
export default AutofillOverlayIframeElement;
|