Style fixes
This commit is contained in:
		
							parent
							
								
									217a815750
								
							
						
					
					
						commit
						f80bf36991
					
				
					 2 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
					@ -14,7 +14,6 @@ class MatrixEvent extends ElemJS {
 | 
				
			||||||
	// predicates
 | 
						// predicates
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	canGroup() {
 | 
						canGroup() {
 | 
				
			||||||
		//return this.data.type === "m.room.message"
 | 
					 | 
				
			||||||
		return false
 | 
							return false
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,8 +24,8 @@ purifier.addHook("uponSanitizeAttribute", (node, hookevent, config) => {
 | 
				
			||||||
	hookevent.keepAttr = allowed_attributes.indexOf(hookevent.attrName) > -1;
 | 
						hookevent.keepAttr = allowed_attributes.indexOf(hookevent.attrName) > -1;
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//Remove bad classes from our code element
 | 
					 | 
				
			||||||
purifier.addHook("uponSanitizeElement", (node, hookevent, config) => {
 | 
					purifier.addHook("uponSanitizeElement", (node, hookevent, config) => {
 | 
				
			||||||
 | 
						// Remove bad classes from our code element
 | 
				
			||||||
	if (node.tagName == "CODE") {
 | 
						if (node.tagName == "CODE") {
 | 
				
			||||||
		node.classList.forEach(c => {
 | 
							node.classList.forEach(c => {
 | 
				
			||||||
			if (!c.startsWith("language-")) {
 | 
								if (!c.startsWith("language-")) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue