mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
25 lines
669 B
TypeScript
25 lines
669 B
TypeScript
import { controller } from "@github/catalyst";
|
|
import style from "styles/main.scss";
|
|
|
|
(function () {
|
|
const _shadow = new WeakMap();
|
|
|
|
@controller
|
|
class AppShadowElement extends HTMLElement {
|
|
constructor() {
|
|
super();
|
|
_shadow.set(this, this.attachShadow({ mode: "closed" }));
|
|
}
|
|
|
|
connectedCallback() {
|
|
const _root = _shadow.get(this);
|
|
const _appMain = document.createElement("app-main");
|
|
const _style = document.createElement("style");
|
|
_style.innerHTML = style;
|
|
|
|
_root.appendChild(_style);
|
|
_root.appendChild(_appMain);
|
|
}
|
|
}
|
|
})();
|