Răsfoiți Sursa

do not remove meta tags

Gildas 5 ani în urmă
părinte
comite
8dc6134c36
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      extension/ui/content/content-ui-editor-web.js

+ 1 - 1
extension/ui/content/content-ui-editor-web.js

@@ -1312,7 +1312,7 @@ table {
 				const elementKept = cuttingPath[cuttingPathIndex];
 				if (document.documentElement != elementKept && elementKept.tagName.toLowerCase() != NOTE_TAGNAME) {
 					const elements = [];
-					document.body.querySelectorAll("*:not(style):not(." + REMOVED_CONTENT_CLASS + ")").forEach(element => {
+					document.body.querySelectorAll("*:not(style):not(meta):not(." + REMOVED_CONTENT_CLASS + ")").forEach(element => {
 						if (elementKept != element && !isAncestor(elementKept, element) && !isAncestor(element, elementKept)) {
 							element.classList.add(REMOVED_CONTENT_CLASS);
 							elements.push(element);