From 26ae0aef31540b2437b25cfe1bc69747b6dbfa1f Mon Sep 17 00:00:00 2001 From: ASz Date: Fri, 9 Oct 2020 16:46:31 +0200 Subject: [PATCH] Update for SD-943 --- app/views/spree/layouts/_add_js_params.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/layouts/_add_js_params.html.erb b/app/views/spree/layouts/_add_js_params.html.erb index 38828567a..1cbae0562 100644 --- a/app/views/spree/layouts/_add_js_params.html.erb +++ b/app/views/spree/layouts/_add_js_params.html.erb @@ -1,5 +1,5 @@ <%= javascript_tag do %> - document.addEventListener("load", function(){ + window.addEventListener("load", function(){ Spree.url_params["locale"] = "<%= I18n.locale %>"; }) <% end %>