From 2e35c9554189b7fa5f82fcfa2236d59b940deae3 Mon Sep 17 00:00:00 2001 From: "G.Hirpara" Date: Fri, 27 Feb 2026 22:35:35 -0500 Subject: [PATCH] Added trap to catch args in correct location based on whether the call was routed through the Http Server plugin or the command line --- vangard/scripts/DazLoggingUtils.dsa | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vangard/scripts/DazLoggingUtils.dsa b/vangard/scripts/DazLoggingUtils.dsa index cb82d61..1b6989b 100644 --- a/vangard/scripts/DazLoggingUtils.dsa +++ b/vangard/scripts/DazLoggingUtils.dsa @@ -109,7 +109,15 @@ function init_script_utils(log_source_id) { updateModifierKeyState(); } - return getArguments()[0]; + args = getArguments()[0]; + if (args == undefined) { + args = App.scriptArgs[0]; + rv = JSON.parse(args); + } else { + rv = args; + } + + return rv; } /**