We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1b61bda + 26ae0ae commit 71cf9deCopy full SHA for 71cf9de
app/views/spree/layouts/_add_js_params.html.erb
@@ -1,5 +1,5 @@
1
<%= javascript_tag do %>
2
- document.addEventListener("load", function(){
+ window.addEventListener("load", function(){
3
Spree.url_params["locale"] = "<%= I18n.locale %>";
4
})
5
<% end %>
0 commit comments