Fix background css breaking
This commit is contained in:
@@ -478,7 +478,9 @@ function decodeStyle(text:string){
|
|||||||
|
|
||||||
return text.replaceAll(styleDecodeRegex, (full, txt:string) => {
|
return text.replaceAll(styleDecodeRegex, (full, txt:string) => {
|
||||||
try {
|
try {
|
||||||
const ast = css.parse(Buffer.from(txt, 'hex').toString('utf-8'))
|
let text = Buffer.from(txt, 'hex').toString('utf-8')
|
||||||
|
text = risuChatParser(text)
|
||||||
|
const ast = css.parse(text)
|
||||||
const rules = ast?.stylesheet?.rules
|
const rules = ast?.stylesheet?.rules
|
||||||
if(rules){
|
if(rules){
|
||||||
for(let i=0;i<rules.length;i++){
|
for(let i=0;i<rules.length;i++){
|
||||||
|
|||||||
Reference in New Issue
Block a user