Skip to content

Commit

Permalink
Use page_bundle_asset_path/1 in Hologram.UI.Runtime component
Browse files Browse the repository at this point in the history
  • Loading branch information
bartblast committed Oct 26, 2024
1 parent 30697aa commit cff6aae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/hologram/ui/runtime.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
defmodule Hologram.UI.Runtime do
use Hologram.Component

alias Hologram.Assets.ManifestCache, as: AssetManifestCache
alias Hologram.Router.Helpers, as: RouterHelpers

prop :initial_page?, :boolean, from_context: {Hologram.Runtime, :initial_page?}
prop :page_digest, :string, from_context: {Hologram.Runtime, :page_digest}
Expand Down Expand Up @@ -37,7 +39,7 @@ defmodule Hologram.UI.Runtime do
{/if}
{%if !@page_mounted?}
<script async src="/hologram/page-{@page_digest}.js"></script>
<script async src={RouterHelpers.page_bundle_asset_path(@page_digest)}></script>
{/if}
"""
end
Expand Down

0 comments on commit cff6aae

Please sign in to comment.