scripts should have different sourceId

This commit is contained in:
zadam
2019-10-19 15:12:25 +02:00
parent b16c2d19b6
commit 1903c59163
6 changed files with 161 additions and 154 deletions

View File

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