소스 검색

do not remove meta tags

Gildas 5 년 전
부모
커밋
8dc6134c36
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);