Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Added support for legacy browsers such as Safari on iOS 15 (#13125)

Damian Legawiecf04ee49b4de9
diff --git a/admin/app/views/spree/admin/shared/_head.html.erb b/admin/app/views/spree/admin/shared/_head.html.erb
index 370c35f2ba..ed250ba294 100644
--- a/admin/app/views/spree/admin/shared/_head.html.erb
+++ b/admin/app/views/spree/admin/shared/_head.html.erb
@@ -37,6 +37,8 @@
<%= tinymce_assets %>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/[email protected]/dist/trix.css">
+<script async src="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js" data-turbo-track="reload"></script>
+
<%= javascript_importmap_tags 'application-spree-admin', importmap: Rails.application.config.spree_admin.importmap %>
<%= yield :head %>
diff --git a/storefront/app/views/spree/shared/_head.html.erb b/storefront/app/views/spree/shared/_head.html.erb
index 8869cbc352..64a7d508e0 100644
--- a/storefront/app/views/spree/shared/_head.html.erb
+++ b/storefront/app/views/spree/shared/_head.html.erb
@@ -14,6 +14,8 @@
<%= render 'spree/shared/css_variables' %>
<%= render 'spree/shared/fonts' %>
+<script async src="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js" data-turbo-track="reload"></script>
+
<%= javascript_importmap_tags "application-spree-storefront" %>
<% if Rails.application.importmap.packages["application"].present? %>
<%= javascript_import_module_tag "application" %>