feat(compatibility): add polyfill.io to improve compatibility (#236)
This commit is contained in:
@@ -6,3 +6,7 @@ algoliasearch:
|
|||||||
- Promise
|
- Promise
|
||||||
- Object.entries
|
- Object.entries
|
||||||
- Object.assign
|
- Object.assign
|
||||||
|
theme:
|
||||||
|
- Object.values
|
||||||
|
- Promise
|
||||||
|
- fetch
|
||||||
|
|||||||
@@ -255,6 +255,9 @@
|
|||||||
window.config = {{ jsonify $config | safeJS }};
|
window.config = {{ jsonify $config | safeJS }};
|
||||||
</script>
|
</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" -}}
|
{{- range $scratch.Get "script" -}}
|
||||||
{{- partial "plugin/script.html" . -}}
|
{{- partial "plugin/script.html" . -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user