launcher improvements

This commit is contained in:
zadam
2022-12-02 16:46:14 +01:00
parent 7b36709e18
commit b85f335561
17 changed files with 283 additions and 196 deletions

View File

@@ -0,0 +1,17 @@
import AbstractLauncher from "./abstract_launcher.js";
export default class ScriptLauncher extends AbstractLauncher {
constructor(launcherNote) {
super(launcherNote);
this.title(this.launcherNote.title)
.icon(this.launcherNote.getIcon())
.onClick(this.handler);
}
async launch() {
const script = await this.launcherNote.getRelationTarget('script');
await script.executeScript();
}
}