You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	Clipper: Do not export invisible elements
This commit is contained in:
		| @@ -226,8 +226,9 @@ | ||||
| 			const nodeName = node.nodeName.toLowerCase(); | ||||
| 			const nodeParent = node.parentNode; | ||||
| 			const nodeParentName = nodeParent ? nodeParent.nodeName.toLowerCase() : ''; | ||||
| 			const computedStyle = node.nodeType === 1 ? window.getComputedStyle(node) : {}; | ||||
|  | ||||
| 			let isVisible = node.nodeType === 1 ? window.getComputedStyle(node).display !== 'none' : true; | ||||
| 			let isVisible = node.nodeType === 1 ? computedStyle.display !== 'none' && computedStyle.visibility !== 'hidden' : true; | ||||
| 			if (isVisible && ['script', 'noscript', 'style', 'select', 'option', 'button'].indexOf(nodeName) >= 0) isVisible = false; | ||||
|  | ||||
| 			// If it's a text input or a textarea and it has a value, save | ||||
|   | ||||
		Reference in New Issue
	
	Block a user