mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +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.Type == html.ElementNode {
|
||||||
if n.Data == "translate" { // for <translate>Text</translate>
|
if n.Data == "translate" { // for <translate>Text</translate>
|
||||||
translate = true
|
translate = true
|
||||||
} else if n.Data == "style" {
|
} else if n.Data == "style" || n.Data == "noscript" {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
for _, a := range n.Attr {
|
for _, a := range n.Attr {
|
||||||
|
Loading…
Reference in New Issue
Block a user