mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Remove imports from embedded styles
This commit is contained in:
		@@ -471,6 +471,9 @@ export function decodeStyleTags(text) {
 | 
			
		||||
            const rules = ast?.stylesheet?.rules;
 | 
			
		||||
            if (rules) {
 | 
			
		||||
                for (const rule of rules) {
 | 
			
		||||
                    if (rule.type === 'import') {
 | 
			
		||||
                        rules.splice(rules.indexOf(rule), 1);
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    if (rule.type === 'rule') {
 | 
			
		||||
                        if (rule.selectors) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user