mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
add fallback colors for color functions in case of error
This commit is contained in:
@@ -1556,6 +1556,7 @@ function CheckCurrentLesson(lesson: any, num: number) {
|
||||
}
|
||||
|
||||
export function GetThresholdOfColor(color: any) {
|
||||
if (!color) return 0
|
||||
// Case-insensitive regular expression for matching RGBA colors
|
||||
const rgbaRegex = /rgba?\(([^)]+)\)/gi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user