mirror of
https://github.com/simon987/sist2.git
synced 2025-12-16 00:39:04 +00:00
Tag tree fix for #64, validate required argument in exec-script
This commit is contained in:
@@ -160,7 +160,7 @@ function getTags(hit, mimeCategory) {
|
||||
|
||||
if (tokens.length > 1) {
|
||||
const bg = "#" + tokens[1];
|
||||
const fg = lum(tokens[1]) > 40 ? "#000" : "#fff";
|
||||
const fg = lum(tokens[1]) > 50 ? "#000" : "#fff";
|
||||
userTag.setAttribute("style", `background-color: ${bg}; color: ${fg}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user