Popup-card

This commit is contained in:
2022-07-19 22:58:27 +00:00
parent a4085ed3ab
commit 30d8f027dc
8 changed files with 834 additions and 15 deletions

View File

@@ -68,10 +68,7 @@ export const ServicesMixin = (SuperClass) => {
];
for (const service of cmds) {
this.addEventListener(`command-${service}`, (ev) => {
this._service_action({
service,
data: ev.detail,
});
this.service(service, ev.detail);
});
}
@@ -82,6 +79,10 @@ export const ServicesMixin = (SuperClass) => {
});
}
async service(service, data) {
this._service_action({ service, data });
}
async _service_action({ service, data }) {
let _service: String = service;
if (!_service.startsWith("browser_mod.") && _service.includes(".")) {