mirror of
https://github.com/discourse/discourse-placeholder-theme-component.git
synced 2025-07-13 00:23:27 +00:00
FIX: Scope a[href]
detection to post (#43)
Corrects typo in a37e4bf266cc2952156080ed3f269cd29f71bb6b
This commit is contained in:
parent
a37e4bf266
commit
296864048a
@ -103,7 +103,7 @@ function performReplacements(cooked, placeholders) {
|
||||
}
|
||||
|
||||
// Handle a[href] attributes
|
||||
document.querySelectorAll("a[href]").forEach((link) => {
|
||||
cooked.querySelectorAll("a[href]").forEach((link) => {
|
||||
const hrefAttr = link.attributes.getNamedItem("href");
|
||||
|
||||
if (!originalContentMap.has(hrefAttr)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user