mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
add "api.runOnFrontend()" to the backend script API
This commit is contained in:
@@ -107,8 +107,9 @@ function getRelationBundles(req) {
|
||||
|
||||
function getBundle(req) {
|
||||
const note = becca.getNote(req.params.noteId);
|
||||
const {script, params} = req.body;
|
||||
|
||||
return scriptService.getScriptBundleForFrontend(note);
|
||||
return scriptService.getScriptBundleForFrontend(note, script, params);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user