mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
build: Ignore noscript in translation-script (#7149)
This commit is contained in:
parent
6864f7c9d0
commit
6c7e8c08db
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user