This commit is contained in:
thororen1234 2025-01-24 12:37:18 -05:00
parent d9166e36c5
commit 7f21479f59

View file

@ -226,7 +226,7 @@ export default definePlugin({
// also set the colors // also set the colors
{ {
match: /.botText,children:(\i)}\)]/, match: /.botText,children:(\i)}\)]/,
replace: "$&,'data-tag':$1.toLowerCase(),style:{'background-color':moreTags_bgColor,'color':moreTags_fgColor},'data-moreTags-darkFg':moreTags_fgColor?.includes('0')" replace: "$&,'data-tag':$1.toLowerCase(),style:{'background-color':moreTags_bgColor,'color':moreTags_fgColor},'data-moreTags-darkFg':moreTags_fgColor && moreTags_fgColor.includes('0') ? moreTags_fgColor : undefined"
} }
], ],
}, },