RC-51 | Roll Abilities
This commit is contained in:
parent
23cad8fcc3
commit
0319841a01
14 changed files with 327 additions and 4 deletions
22
module/Apps/elements/_index.mjs
Normal file
22
module/Apps/elements/_index.mjs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { Logger } from "../../utils/Logger.mjs";
|
||||
import { RipCryptIcon } from "./Icon.mjs";
|
||||
|
||||
const components = [
|
||||
RipCryptIcon,
|
||||
];
|
||||
|
||||
export function registerCustomComponents() {
|
||||
(CONFIG.CACHE ??= {}).componentListeners ??= [];
|
||||
for (const component of components) {
|
||||
if (!window.customElements.get(component.elementName)) {
|
||||
Logger.debug(`Registering component "${component.elementName}"`);
|
||||
window.customElements.define(
|
||||
component.elementName,
|
||||
component,
|
||||
);
|
||||
if (component.formAssociated) {
|
||||
CONFIG.CACHE.componentListeners.push(component.elementName);
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue