Skip to content

Commit

Permalink
Fix unused variable on topbar callback (phoenixframework#5221)
Browse files Browse the repository at this point in the history
  • Loading branch information
drselump14 authored Jan 23, 2023
1 parent 927b16f commit f9139c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installer/templates/phx_assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import "phoenix_html"

// Show progress bar on live navigation and form submits
<%= @live_comment %>topbar.config({barColors: {0: "#29d"}, shadowColor: "rgba(0, 0, 0, .3)"})
<%= @live_comment %>window.addEventListener("phx:page-loading-start", info => topbar.delayedShow(200))
<%= @live_comment %>window.addEventListener("phx:page-loading-stop", info => topbar.hide())
<%= @live_comment %>window.addEventListener("phx:page-loading-start", _info => topbar.delayedShow(200))
<%= @live_comment %>window.addEventListener("phx:page-loading-stop", _info => topbar.hide())

// connect if there are any LiveViews on the page
<%= @live_comment %>liveSocket.connect()
Expand Down

0 comments on commit f9139c5

Please sign in to comment.