fix: show marker confusion (#1823)

This commit is contained in:
Marvin Hagemeister
2023-09-26 11:54:36 +02:00
committed by GitHub
parent 5a47ffaf59
commit 78606477ec
6 changed files with 337 additions and 359 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ function hideMarker(marker: Marker) {
const parent = endNode!.parentNode!;
if (
SHOW_MARKERS && startNode !== null &&
!SHOW_MARKERS && startNode !== null &&
startNode.nodeType === Node.COMMENT_NODE
) {
const text = new Text("");
@@ -139,7 +139,7 @@ function hideMarker(marker: Marker) {
}
if (
SHOW_MARKERS && endNode !== null && endNode.nodeType === Node.COMMENT_NODE
!SHOW_MARKERS && endNode !== null && endNode.nodeType === Node.COMMENT_NODE
) {
const text = new Text("");
marker.endNode = text;