Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit f90805f

Browse files
Johennesturt2live
andauthored
Use exact inequality
Co-authored-by: Travis Ralston <[email protected]>
1 parent 5da4ab8 commit f90805f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HtmlUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ export function tooltipifyLinks(rootNodes: ArrayLike<Element>, ignoredNodes: Ele
672672
continue;
673673
}
674674

675-
if (node.tagName === "A" && node.getAttribute("href") && node.getAttribute("href") != node.textContent.trim()) {
675+
if (node.tagName === "A" && node.getAttribute("href") && node.getAttribute("href") !== node.textContent.trim()) {
676676
const href = node.getAttribute("href");
677677
const tooltip = <TextWithTooltip tooltip={getAbsoluteUrl(href)}>
678678
<span dangerouslySetInnerHTML={{ __html: node.innerHTML }} />

0 commit comments

Comments
 (0)