Skip to content
Snippets Groups Projects
Unverified Commit 1dac9d61 authored by tribut's avatar tribut :man_dancing:
Browse files

Prevent another Javascript error

parent 5a98cf58
Branches
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone)
<%= turbo_stream_from @conference %>
<div>
<div>
<a href="#now" onclick="document.querySelector('#now').scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' }); return false" class="underline text-blue-500">Jump to current time</a>
<a href="#now" onclick="document.querySelector('#now')?.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' }); return false" class="underline text-blue-500">Jump to current time</a>
</div>
<h1 class="text-2xl font-bold my-2"><%= @conference.name %></h1>
<p class="text-xs mb-6">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment