Popup-card
This commit is contained in:
@@ -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(".")) {
|
||||
|
||||
Reference in New Issue
Block a user