Merge pull request #505 from betagouv/bugfix

🐛 corrige page blanche sur safari 9 et 10
pull/522/head
Johan Girod 2019-04-09 10:58:40 +02:00 committed by GitHub
commit 20d0d00c7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -229,12 +229,17 @@
type="module"
src="<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"
></script>
<script nomodule src="<%= chunk %>.legacy.bundle.js"></script>
<% } %>
<!-- Polyfill and source for old browser -->
<!-- Add polyfill.io for a very narrow web feature
IntersectionObserver : SAFARI 11 & 12.0 https://caniuse.com/#search=intersectionobserver
Intl : SAFARI 9 & 10.0 https://caniuse.com/#search=Intl
-->
<script src="https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=Intl%2CIntersectionObserver"></script>
<% for (var chunk in htmlWebpackPlugin.files.chunks) { %>
<script nomodule src="<%= chunk %>.legacy.bundle.js"></script>
<% } %>
</body>
</html>