Include sentry meta in the data-* container

This commit is contained in:
Adam Rutkowski 2023-01-17 10:31:48 +01:00
parent 4a393aa8e5
commit 129fc86891

View File

@ -15,6 +15,9 @@
<div <div
id="stats-react-container" id="stats-react-container"
style="overflow-anchor: none;" style="overflow-anchor: none;"
data-sentry-dsn="<%= @sentry_dsn %>",
data-sentry-release="<%= @sentry_release %>",
data-environment="<%= @environment %>",
data-domain="<%= @site.domain %>" data-domain="<%= @site.domain %>"
data-offset="<%= Timex.Timezone.total_offset(Timex.Timezone.get(@site.timezone)) %>" data-offset="<%= Timex.Timezone.total_offset(Timex.Timezone.get(@site.timezone)) %>"
data-has-goals="<%= @has_goals %>" data-has-goals="<%= @has_goals %>"
@ -52,6 +55,6 @@
</div> </div>
</div> </div>
<% end %> <% end %>
<script type="text/javascript" src="<%= Routes.static_path(@conn, "/js/dashboard.instrumentation.js") %>"></script> <script type="text/javascript" src="<%= Routes.static_path(@conn, "/js/dashboard.sentry.js") %>"></script>
<script type="text/javascript" src="<%= Routes.static_path(@conn, "/js/dashboard.js") %>"></script> <script type="text/javascript" src="<%= Routes.static_path(@conn, "/js/dashboard.js") %>"></script>
</div> </div>