Skip to content

Commit

Permalink
fix: refresh automatically if there's no JS
Browse files Browse the repository at this point in the history
  • Loading branch information
paulswartz committed Feb 5, 2025
1 parent e3d7bf9 commit 7386129
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ride_along_web/live/trip_live/show.html.heex
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<noscript>
<% # refresh automatically if there's no JS running %>
<meta http-equiv="refresh" content="60" />
</noscript>
<main class={[
"bg-gray-100 max-w-lg h-full",
Application.get_env(:ride_along, :dev_routes) || "mx-auto"
!!Application.get_env(:ride_along, :dev_routes) && "mx-auto"
]}>
<h1 class="sr-only">{@page_title}</h1>
<div id="status" class="sr-only" aria-live="assertive" aria-atomic="true">
Expand Down

0 comments on commit 7386129

Please sign in to comment.