mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 01:33:45 +08:00
fix: script code error
This commit is contained in:
parent
6c85b8717f
commit
c8a046996b
@ -34,7 +34,7 @@ pub fn use_script(script: String, config: Mapping) -> Result<(Mapping, Vec<(Stri
|
||||
|
||||
let code = format!(
|
||||
r#"try{{
|
||||
{script}\n;
|
||||
{script};
|
||||
JSON.stringify(main({config_str})||'')
|
||||
}} catch(err) {{
|
||||
`__error_flag__ ${{err.toString()}}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user