We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 528f78a commit 26ae0aeCopy full SHA for 26ae0ae
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