mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
log messages now contain script context if available
This commit is contained in:
@@ -33,6 +33,7 @@ function executeBundle(bundle, apiParams = {}) {
|
||||
const originalComponentId = cls.get('componentId');
|
||||
|
||||
cls.set('componentId', 'script');
|
||||
cls.set('bundleNoteId', bundle.note.noteId);
|
||||
|
||||
// last \r\n is necessary if script contains line comment on its last line
|
||||
const script = "function() {\r\n" + bundle.script + "\r\n}";
|
||||
|
||||
Reference in New Issue
Block a user