Formatting

This commit is contained in:
Ly-sec 2025-08-22 19:57:29 +02:00
parent 566e3e2aa7
commit ce9ab7f90f
8 changed files with 73 additions and 86 deletions

View file

@ -47,7 +47,8 @@ Singleton {
// -----------
function applyOpacity(color, opacity) {
// Convert color to string and apply opacity
if (!color) return "transparent"
if (!color)
return "transparent"
return color.toString().replace("#", "#" + opacity)
}