mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
add "api.runOnFrontend()" to the backend script API
This commit is contained in:
@@ -10,7 +10,7 @@ async function render(note, $el) {
|
||||
$el.empty().toggle(renderNoteIds.length > 0);
|
||||
|
||||
for (const renderNoteId of renderNoteIds) {
|
||||
const bundle = await server.get(`script/bundle/${renderNoteId}`);
|
||||
const bundle = await server.post(`script/bundle/${renderNoteId}`);
|
||||
|
||||
const $scriptContainer = $('<div>');
|
||||
$el.append($scriptContainer);
|
||||
|
||||
Reference in New Issue
Block a user