Set explicit format for global_constants javascript [SCI-11567]

This commit is contained in:
Martin Artnik 2025-02-12 15:39:26 +01:00
parent 1f08fbb986
commit 190224009e
3 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@
<% if ::NewRelic::Agent.instance.started? %>
<%= ::NewRelic::Agent.browser_timing_header(controller.request.content_security_policy_nonce) %>
<% end %>
<script src="<%= global_constants_path %>"></script>
<script src="<%= global_constants_path(format: :js) %>"></script>
<%= javascript_include_tag 'jquery_bundle' %>
<%= javascript_include_tag 'application_pack' %>

View file

@ -5,7 +5,7 @@
<meta data-hook="head-js">
<title><%=t "head.title", title: (yield :head_title) %></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script src="<%= global_constants_path %>"></script>
<script src="<%= global_constants_path(format: :js) %>"></script>
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag 'bootstrap_pack', media: 'all' %>

View file

@ -10,7 +10,7 @@
<style media="all">
html, body { height: 100%; min-height: 100%; }
</style>
<script src="<%= global_constants_path %>"></script>
<script src="<%= global_constants_path(format: :js) %>"></script>
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag 'bootstrap_pack', media: 'all' %>