build: Ignore noscript in translation-script (#7149)

This commit is contained in:
Simon Frei 2020-11-24 22:17:52 +01:00 committed by GitHub
parent 6864f7c9d0
commit 6c7e8c08db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ func generalNode(n *html.Node, filename string) {
if n.Type == html.ElementNode {
if n.Data == "translate" { // for <translate>Text</translate>
translate = true
} else if n.Data == "style" {
} else if n.Data == "style" || n.Data == "noscript" {
return
} else {
for _, a := range n.Attr {