mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
many small issues found by intellij analysis
This commit is contained in:
@@ -66,8 +66,8 @@ function executeScript(script, params, startNoteId, currentNoteId, originEntityN
|
||||
const currentNote = becca.getNote(currentNoteId);
|
||||
const originEntity = becca.getEntity(originEntityName, originEntityId);
|
||||
|
||||
// we're just executing an excerpt of the original frontend script in the backend context so we must
|
||||
// override normal note's content and it's mime type / script environment
|
||||
// we're just executing an excerpt of the original frontend script in the backend context, so we must
|
||||
// override normal note's content, and it's mime type / script environment
|
||||
const backendOverrideContent = `return (${script}\r\n)(${getParams(params)})`;
|
||||
|
||||
const bundle = getScriptBundle(currentNote, true, null, [], backendOverrideContent);
|
||||
|
||||
Reference in New Issue
Block a user