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