mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
scripts should have different sourceId
This commit is contained in:
@@ -32,6 +32,8 @@ async function executeBundle(bundle, apiParams = {}) {
|
||||
apiParams.startNote = bundle.note;
|
||||
}
|
||||
|
||||
cls.namespace.set('sourceId', 'script');
|
||||
|
||||
// last \r\n is necessary if script contains line comment on its last line
|
||||
const script = "async function() {\r\n" + bundle.script + "\r\n}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user