Skip to content

Commit

Permalink
fix core_theme issue in deps()
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Jun 14, 2024
1 parent d2e35cd commit 3659951
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Layout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function layout(output::Union{S,Vector}, m::M;
content = [
output
theme(; core_theme)
Stipple.deps(m; core_theme)
Stipple.deps(m)
]

partial && return content
Expand Down
4 changes: 2 additions & 2 deletions src/Stipple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -857,14 +857,14 @@ end
Outputs the HTML code necessary for injecting the dependencies in the page (the <script> tags).
"""
function deps(m::M; core_theme::Bool = true) :: Vector{String} where {M<:ReactiveModel}
function deps(m::M) :: Vector{String} where {M<:ReactiveModel}
channel = getchannel(m)
output = [
channelscript(channel),
(is_channels_webtransport() ? Genie.Assets.channels_script_tag(channel) : Genie.Assets.webthreads_script_tag(channel)),
Genie.Renderer.Html.script(src = Genie.Assets.asset_path(assets_config, :js, file="underscore-min")),
Genie.Renderer.Html.script(src = Genie.Assets.asset_path(assets_config, :js, file=(Genie.Configuration.isprod() ? "vue.global.prod" : "vue.global"))),
core_theme && Genie.Renderer.Html.script(src = Genie.Assets.asset_path(assets_config, :js, file="stipplecore")),
Genie.Renderer.Html.script(src = Genie.Assets.asset_path(assets_config, :js, file="stipplecore")),
Genie.Renderer.Html.script(src = Genie.Assets.asset_path(assets_config, :js, file="vue_filters"), defer=true),
Genie.Renderer.Html.script(src = Genie.Assets.asset_path(assets_config, :js, file="watchers")),
Genie.Renderer.Html.script(src = Genie.Assets.asset_path(assets_config, :js, file="vue2compat")),
Expand Down

0 comments on commit 3659951

Please sign in to comment.