mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 11:39:37 +08:00
Fix typo in backend API createOrUpdateLauncher()
(cherry picked from commit b3f47bb2b6
)
This commit is contained in:
parent
64d8c7a657
commit
117f1101e4
1 changed files with 2 additions and 2 deletions
|
@ -475,7 +475,7 @@ function BackendScriptApi(currentNote, apiParams) {
|
|||
const noteId = 'al_' + opts.id;
|
||||
|
||||
const launcherNote =
|
||||
becca.getNote(opts.id) ||
|
||||
becca.getNote(noteId) ||
|
||||
specialNotesService.createLauncher({
|
||||
noteId: noteId,
|
||||
parentNoteId: parentNoteId,
|
||||
|
@ -514,7 +514,7 @@ function BackendScriptApi(currentNote, apiParams) {
|
|||
if (opts.icon) {
|
||||
launcherNote.setLabel('iconClass', `bx ${opts.icon}`);
|
||||
} else {
|
||||
launcherNote.removeLabel('keyboardShortcut');
|
||||
launcherNote.removeLabel('iconClass');
|
||||
}
|
||||
|
||||
return {note: launcherNote};
|
||||
|
|
Loading…
Reference in a new issue