Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat(compatibility): add polyfill.io to improve compatibility (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq authored Apr 16, 2020
1 parent bc97c09 commit 9f37d7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/lib/polyfill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ algoliasearch:
- Promise
- Object.entries
- Object.assign
theme:
- Object.values
- Promise
- fetch
3 changes: 3 additions & 0 deletions layouts/partials/assets.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@
window.config = {{ jsonify $config | safeJS }};
</script>

{{- /* Polyfill.io */ -}}
{{- partial "plugin/script.html" (dict "source" "https://polyfill.io/v3/polyfill.min.js?features=Element.prototype.closest%2CrequestAnimationFrame%2CCustomEvent%2CPromise%2CObject.entries%2CObject.assign%2CObject.values%2Cfetch") -}}

{{- range $scratch.Get "script" -}}
{{- partial "plugin/script.html" . -}}
{{- end -}}
Expand Down

0 comments on commit 9f37d7b

Please sign in to comment.