mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix execute note
This commit is contained in:
parent
0cef5c6b8c
commit
39dc0f71b4
@ -67,13 +67,13 @@ async function executeCurrentNote() {
|
|||||||
const currentNote = noteDetailService.getCurrentNote();
|
const currentNote = noteDetailService.getCurrentNote();
|
||||||
|
|
||||||
if (currentNote.mime.endsWith("env=frontend")) {
|
if (currentNote.mime.endsWith("env=frontend")) {
|
||||||
const bundle = await server.get('script/bundle/' + getCurrentNoteId());
|
const bundle = await server.get('script/bundle/' + noteDetailService.getCurrentNoteId());
|
||||||
|
|
||||||
bundleService.executeBundle(bundle);
|
bundleService.executeBundle(bundle);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentNote.mime.endsWith("env=backend")) {
|
if (currentNote.mime.endsWith("env=backend")) {
|
||||||
await server.post('script/run/' + getCurrentNoteId());
|
await server.post('script/run/' + noteDetailService.getCurrentNoteId());
|
||||||
}
|
}
|
||||||
|
|
||||||
infoService.showMessage("Note executed");
|
infoService.showMessage("Note executed");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user