diff options
author | bobzel <zzzman@gmail.com> | 2025-04-01 13:49:09 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-04-01 13:49:09 -0400 |
commit | 6187b0691299f92f526b65bd6ad4a5148b387607 (patch) | |
tree | 97f0433649c29959d268f0a394029024f5c1173c /src/client/util/Scripting.ts | |
parent | 6c8effb77029db96bccab92152a6b68a0aefc132 (diff) |
added an override_backgroundColor or templates that want to control background colors. needs to be generalized, perhaps along the lines of !important. fixed script sto ignore Array<T> template errors..
Diffstat (limited to 'src/client/util/Scripting.ts')
-rw-r--r-- | src/client/util/Scripting.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/util/Scripting.ts b/src/client/util/Scripting.ts index b0886a67c..2fa6e3059 100644 --- a/src/client/util/Scripting.ts +++ b/src/client/util/Scripting.ts @@ -51,6 +51,7 @@ function Run(script: string | undefined, customParams: string[], diagnostics: ts const errors = diagnostics.filter(diag => diag.category === ts.DiagnosticCategory.Error).filter(diag => // diag.code !== 2304 && diag.code !== 2339 && + diag.code !== 2314 && (diag.code !== 2552 ||!Object.keys(scriptingGlobals).includes(diagnostics[0].messageText.toString().match(/Cannot find name '([A-Za-z0-9$-_]+)'/)?.[1]??"-------")) ); // prettier-ignore if ((options.typecheck !== false && errors.length) || !script) { |