mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-20 21:45:10 +00:00
polyfill fetch
This commit is contained in:
@@ -12,8 +12,8 @@
|
|||||||
<link rel='icon' type='image/png' href='favicon.png'>
|
<link rel='icon' type='image/png' href='favicon.png'>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(window.Promise && [].includes && Object.assign && window.Map) ||
|
(window.Promise && [].includes && Object.assign && window.Map && window.fetch) ||
|
||||||
document.write('<script src="https://cdn.polyfill.io/v2/polyfill.min.js"><\/script>');
|
document.write('<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,fetch"><\/script>');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Sapper generates a <style> tag containing critical CSS
|
<!-- Sapper generates a <style> tag containing critical CSS
|
||||||
|
|||||||
Reference in New Issue
Block a user