Skip to content

Commit

Permalink
Amend function again
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-imber committed Dec 1, 2023
1 parent 61aa79e commit fa261c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/app/views/support/HtmlCleaner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ object AffiliateLinksCleaner {
element.tagName == "a" && SkimLinksCache.isSkimLink(element.attr("href"))

def insertAffiliateDisclaimer(document: Document, contentType: String): Document = {
val standfirstElement = document.getElementsByClass("tonal__standfirst")[0]
val standfirstElement = document.getElementsByClass("tonal__standfirst").first()
standfirstElement.after(affiliateLinksDisclaimer(contentType).toString())
document
}
Expand Down

0 comments on commit fa261c5

Please sign in to comment.