added today launcher

This commit is contained in:
zadam
2022-12-18 23:25:35 +01:00
parent 5fca606730
commit e41104208a
4 changed files with 22 additions and 2 deletions

View File

@@ -32,12 +32,13 @@ export default class NoteLauncher extends AbstractLauncher {
}
async launch(evt) {
const targetNoteId = this.getTargetNoteId();
// await because subclass overrides can be async
const targetNoteId = await this.getTargetNoteId();
if (!targetNoteId) {
return;
}
const hoistedNoteId = this.getHoistedNoteId();
const hoistedNoteId = await this.getHoistedNoteId();
if (!evt) {
// keyboard shortcut