Skip to content

Commit

Permalink
Remove extra main.js in html
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Nov 29, 2021
1 parent e24ef5d commit f144d05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
Expand Up @@ -787,7 +787,10 @@ open class HtmlRenderer(
type = ScriptType.textJavaScript,
src = "###$it"
) {
async = true
if (it == "scripts/main.js")
defer = true
else
async = true
}
}
it.isImage() -> if (it.isAbsolute) link(href = it)
Expand Down Expand Up @@ -832,9 +835,6 @@ open class HtmlRenderer(
}
div {
id = "main"
templateCommand(PathToRootSubstitutionCommand("###", default = pathToRoot)) {
script(type = ScriptType.textJavaScript, src = "###scripts/main.js") {}
}
content()
div(classes = "footer") {
span("go-to-top-icon") {
Expand Down

0 comments on commit f144d05

Please sign in to comment.