Skip to content

Commit f43ca7e

Browse files
author
Timothy Johnson
committed
Correct false positive on anchors
1 parent 44df0be commit f43ca7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dest/privilegedContent.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@
138138
const observer = new MutationObserver(list =>
139139
list.forEach(mutation => {
140140
const node = nodeMap.get(mutation.target)
141-
if (node)
142-
window.postMessage({
143-
type: 'updateNode',
144-
node: serializeNode(node)
145-
})
141+
if (node) if (node.type == 'anchor') node.type = 'text'
142+
window.postMessage({
143+
type: 'updateNode',
144+
node: serializeNode(node)
145+
})
146146
})
147147
)
148148

0 commit comments

Comments
 (0)