log messages now contain script context if available

This commit is contained in:
zadam
2022-02-01 22:25:38 +01:00
parent 6833959f3b
commit 0917fc8be1
4 changed files with 13 additions and 1 deletions

View File

@@ -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}";