mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fixes and polish
This commit is contained in:
		| @@ -31,7 +31,7 @@ async function executeBundle(bundle, apiParams = {}) { | ||||
|         apiParams.startNote = bundle.note; | ||||
|     } | ||||
|  | ||||
|     cls.namespace.set('sourceId', 'script'); | ||||
|     cls.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}"; | ||||
| @@ -187,4 +187,4 @@ module.exports = { | ||||
|     executeNoteNoException, | ||||
|     executeScript, | ||||
|     getScriptBundleForFrontend | ||||
| }; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user