Skip to content

Commit

Permalink
Handle no-script images better
Browse files Browse the repository at this point in the history
Apply the patch from go-shiori#15
  • Loading branch information
jedevc committed May 10, 2022
1 parent dd6828d commit d8187d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1510,6 +1510,8 @@ func (ps *Parser) unwrapNoscriptImages(doc *html.Node) {
}

dom.ReplaceChild(noscript.Parent, dom.FirstElementChild(tmpBody), prevElement)
} else {
dom.ReplaceChild(noscript.Parent, dom.FirstElementChild(tmpBody), noscript)
}
})
}
Expand Down

0 comments on commit d8187d1

Please sign in to comment.