mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-27 00:56:19 +01:00
feat(compatibility): add polyfill.io to improve compatibility (#236)
This commit is contained in:
parent
bc97c099ac
commit
9f37d7bc2a
2 changed files with 7 additions and 0 deletions
|
@ -6,3 +6,7 @@ algoliasearch:
|
|||
- Promise
|
||||
- Object.entries
|
||||
- Object.assign
|
||||
theme:
|
||||
- Object.values
|
||||
- Promise
|
||||
- fetch
|
||||
|
|
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue