mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-02 01:50:43 -06:00
tweaked script node
This commit is contained in:
@@ -45,7 +45,8 @@ public class ScriptNode:Node
|
||||
var execArgs = new JavascriptExecutionArgs
|
||||
{
|
||||
Args = args,
|
||||
Code = Code + "\n\n" + entryPoint
|
||||
//Code = ("try\n{\n\t" + Code.Replace("\n", "\n\t") + "\n\n\t" + entryPoint + "\n} catch (err) { \n\tLogger.ELog(`Error in script [${err.line}]: ${err}`);\n\treturn -1;\n}").Replace("\t", " ")
|
||||
Code = (Code + "\n\n" + entryPoint).Replace("\t", " ").Trim()
|
||||
};
|
||||
|
||||
if (script.Parameters?.Any() == true)
|
||||
|
||||
Reference in New Issue
Block a user